Mercurial > mplayer.hg
changeset 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 | 70a2195b4904 |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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);