gstffmpegdec: Don't forget to copy over the reordered_opaque in our buffers.

This is to be on-par with the default get_buffer() implementation (which is
detailed in libavcodec/utils.c).
This commit is contained in:
Edward Hervey 2009-05-13 13:47:58 +02:00
parent a26b94d92c
commit ee5a964293

View 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;