diff libmpcodecs/vd_ffmpeg.c @ 33200:17ed3a57c83c

Allow DR to work with reget_buffer when no buffer_hints are set.
author reimar
date Fri, 22 Apr 2011 08:05:56 +0000
parents 85d0e813370f
children 6e6eac0ea1b4
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Fri Apr 22 07:58:06 2011 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Fri Apr 22 08:05:56 2011 +0000
@@ -590,6 +590,9 @@
     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);