summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd_ffmpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/vd_ffmpeg.c')
-rw-r--r--libmpcodecs/vd_ffmpeg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index df85ab11a3..fd3b73d2af 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -181,7 +181,7 @@ static int init(sh_video_t *sh){
ctx->avctx = avcodec_alloc_context();
avctx = ctx->avctx;
-#if LIBAVCODEC_BUILD >= 4691
+#if LIBAVCODEC_BUILD >= 4691 && LIBAVCODEC_BUILD <= 4692
if(lavc_codec->capabilities&CODEC_CAP_CR)
avctx->cr_available = 1;
#endif
@@ -202,6 +202,9 @@ static int init(sh_video_t *sh){
avctx->flags|= CODEC_FLAG_EMU_EDGE;
avctx->get_buffer= get_buffer;
avctx->release_buffer= release_buffer;
+#if LIBAVCODEC_BUILD >= 4693
+ avctx->reget_buffer= get_buffer;
+#endif
}
#ifdef CODEC_FLAG_NOT_TRUNCATED