mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
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:
parent
a26b94d92c
commit
ee5a964293
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue