# HG changeset patch # User reimar # Date 1303459556 0 # Node ID 17ed3a57c83cb6c056c024ec4c8bfc94297db5d3 # Parent 85d0e813370f089ed1e8f2a83f9d305b64c18fd9 Allow DR to work with reget_buffer when no buffer_hints are set. diff -r 85d0e813370f -r 17ed3a57c83c libmpcodecs/vd_ffmpeg.c --- 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);