Browse Source

MT#55283 version-guard avcodec_close()

This has been deprecated in favour of avcodec_free_context()

Change-Id: I517f2f2435c66450c876857e03324fb5d24814de
(cherry picked from commit 4f66963355)
(cherry picked from commit 0cc2fca1ce)
mr11.5.1
Richard Fuchs 2 years ago
parent
commit
ff289d97e7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      lib/codeclib.c

+ 2
- 0
lib/codeclib.c View File

@ -1748,7 +1748,9 @@ err:
static void avc_encoder_close(encoder_t *enc) {
if (enc->avc.avcctx) {
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(61, 0, 0)
avcodec_close(enc->avc.avcctx);
#endif
avcodec_free_context(&enc->avc.avcctx);
}
enc->avc.avcctx = NULL;


Loading…
Cancel
Save