mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
avviddec: libav will already copy the reordered_opaque pointer for us
If we do it ourselves, it might get the wrong value if our assumptions are broken by libav at a later time.
This commit is contained in:
parent
5b6c8ee8c9
commit
9b2c0c2dbc
1 changed files with 0 additions and 3 deletions
|
@ -623,7 +623,6 @@ gst_ffmpegviddec_get_buffer (AVCodecContext * context, AVFrame * picture)
|
||||||
/* apply the last info we have seen to this picture, when we get the
|
/* apply the last info we have seen to this picture, when we get the
|
||||||
* picture back from ffmpeg we can use this to correctly timestamp the output
|
* picture back from ffmpeg we can use this to correctly timestamp the output
|
||||||
* buffer */
|
* buffer */
|
||||||
picture->reordered_opaque = context->reordered_opaque;
|
|
||||||
GST_DEBUG_OBJECT (ffmpegdec, "opaque value SN %d",
|
GST_DEBUG_OBJECT (ffmpegdec, "opaque value SN %d",
|
||||||
(gint32) picture->reordered_opaque);
|
(gint32) picture->reordered_opaque);
|
||||||
|
|
||||||
|
@ -794,8 +793,6 @@ gst_ffmpegviddec_reget_buffer (AVCodecContext * context, AVFrame * picture)
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (ffmpegdec, "regetting buffer picture %p", picture);
|
GST_DEBUG_OBJECT (ffmpegdec, "regetting buffer picture %p", picture);
|
||||||
|
|
||||||
picture->reordered_opaque = context->reordered_opaque;
|
|
||||||
|
|
||||||
/* if there is no opaque, we didn't yet attach any frame to it. What usually
|
/* if there is no opaque, we didn't yet attach any frame to it. What usually
|
||||||
* happens is that avcodec_default_reget_buffer will call the getbuffer
|
* happens is that avcodec_default_reget_buffer will call the getbuffer
|
||||||
* function. */
|
* function. */
|
||||||
|
|
Loading…
Reference in a new issue