changeset 11526:523570adaad5

reget_buffer() support
author rtognimp
date Wed, 26 Nov 2003 20:58:41 +0000
parents c35bdb0a16eb
children f649a00416e5
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Tue Nov 25 12:41:56 2003 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Wed Nov 26 20:58:41 2003 +0000
@@ -181,7 +181,7 @@
     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 @@
         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