summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-12-14 11:42:17 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-12-14 11:42:17 +0000
commitb8af4fe9a51bc054507d6f56375eb754faa1409d (patch)
tree1e55b419a69b26281c0e0f20273ab6c86be4b595 /libavcodec/utils.c
parent954a0b482a1463f0c2fa3edb758568e049585189 (diff)
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
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 2359a63f9e..d91cbc0428 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