diff options
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index 6ca8482544..da1384cbe6 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -338,9 +338,11 @@ static void uninit(sh_video_t *sh){ if (avctx->extradata_size) free(avctx->extradata); avctx->extradata=NULL; +#if LIBAVCODEC_BUILD >= 4689 if (avctx->palctrl) free(avctx->palctrl); avctx->palctrl=NULL; +#endif if(avctx->slice_offset!=NULL) free(avctx->slice_offset); avctx->slice_offset=NULL; |