From: <bi...@ke...> - 2009-05-13 11:48:29
|
Module: gst-ffmpeg Branch: master Commit: ee5a96429394e5a9df592372094ad0000b5e4a52 URL: http://cgit.freedesktop.org/gstreamer/gst-ffmpeg/commit/?id=ee5a96429394e5a9df592372094ad0000b5e4a52 Author: Edward Hervey <bi...@bi...> Date: Wed May 13 13:47:58 2009 +0200 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). --- ext/ffmpeg/gstffmpegdec.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c index dff095c..9a2d436 100644 --- a/ext/ffmpeg/gstffmpegdec.c +++ b/ext/ffmpeg/gstffmpegdec.c @@ -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; |