From 255e922fb62a333f8e4e1284bcec5334fce3ac1b Mon Sep 17 00:00:00 2001 From: rtognimp Date: Wed, 26 Nov 2003 20:58:41 +0000 Subject: [PATCH] reget_buffer() support git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11527 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_ffmpeg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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