summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-08-20 23:11:26 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-08-20 23:11:26 +0000
commit79de84f2634e60470183b9b314ecb7ed2264cc4c (patch)
treeef6b94be5ffa67ae2c5a12cd30660e324faccda7 /libavcodec/utils.c
parent28f27e0c0c234ead2742510014132803f2511dc7 (diff)
Provide a simpler way for the user to reorder her timestamps.
Originally committed as revision 14871 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 39347c8bc2..fa5bf1a894 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -285,6 +285,8 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
}
s->internal_buffer_count++;
+ pic->reordered_opaque= s->reordered_opaque;
+
if(s->debug&FF_DEBUG_BUFFERS)
av_log(s, AV_LOG_DEBUG, "default_get_buffer called on pic %p, %d buffers used\n", pic, s->internal_buffer_count);