[MPlayer-cvslog] r33287 - trunk/libmpcodecs/vd_ffmpeg.c

reimar subversion at mplayerhq.hu
Fri Apr 22 10:05:56 CEST 2011


Author: reimar
Date: Fri Apr 22 10:05:56 2011
New Revision: 33287

Log:
Allow DR to work with reget_buffer when no buffer_hints are set.

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	Fri Apr 22 09:58:06 2011	(r33286)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Fri Apr 22 10:05:56 2011	(r33287)
@@ -590,6 +590,9 @@ static int get_buffer(AVCodecContext *av
     int type= MP_IMGTYPE_IPB;
     int width= avctx->width;
     int height= avctx->height;
+    // special case to handle reget_buffer without buffer hints
+    if (pic->opaque && pic->data[0] && !pic->buffer_hints)
+        return 0;
     avcodec_align_dimensions(avctx, &width, &height);
 //printf("get_buffer %d %d %d\n", pic->reference, ctx->ip_count, ctx->b_count);
 


More information about the MPlayer-cvslog mailing list