From: Michael Niedermayer Date: Mon, 14 Dec 2009 11:42:17 +0000 (+0000) Subject: Set reordered_opaque in default_reget_buffer() with internal buffers. X-Git-Tag: v0.6~2316 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8af4fe9a51bc054507d6f56375eb754faa1409d;p=platform%2Fupstream%2Flibav.git Set reordered_opaque in default_reget_buffer() with internal buffers. From ffmbc0.3, this one appears to be a bugfix. Originally committed as revision 20862 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 2359a63..d91cbc0 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -367,8 +367,10 @@ int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic){ } /* If internal buffer type return the same buffer */ - if(pic->type == FF_BUFFER_TYPE_INTERNAL) + if(pic->type == FF_BUFFER_TYPE_INTERNAL) { + pic->reordered_opaque= s->reordered_opaque; return 0; + } /* * Not internal type and reget_buffer not overridden, emulate cr buffer