gstffmpegdec: Don't forget to copy over the reordered_opaque in our buffers.
authorEdward Hervey <bilboed@bilboed.com>
Wed, 13 May 2009 11:47:58 +0000 (13:47 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 13 May 2009 11:47:58 +0000 (13:47 +0200)
This is to be on-par with the default get_buffer() implementation (which is
detailed in libavcodec/utils.c).

ext/ffmpeg/gstffmpegdec.c

index dff095c..9a2d436 100644 (file)
@@ -900,6 +900,7 @@ gst_ffmpegdec_get_buffer (AVCodecContext * context, AVFrame * picture)
    * picture back from ffmpeg we can use this to correctly timestamp the output
    * buffer */
   picture->pts = ffmpegdec->in_ts;
+  picture->reordered_opaque = context->reordered_opaque;
   /* make sure we don't free the buffer when it's not ours */
   picture->opaque = NULL;