diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-06-26 15:38:38 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-06-26 16:58:55 +0200 |
commit | 9b2c0c2dbcda3cd08aee98bc4bfdaabb1db11c63 (patch) | |
tree | 3d24e42a4b23637d5146fa3f32741b4a7eb5dff6 /ext | |
parent | 5b6c8ee8c96d773850cc213be00b5f43f60dbd55 (diff) |
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.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/libav/gstavviddec.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/libav/gstavviddec.c b/ext/libav/gstavviddec.c index 13a8d30..e7111bb 100644 --- a/ext/libav/gstavviddec.c +++ b/ext/libav/gstavviddec.c @@ -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 * picture back from ffmpeg we can use this to correctly timestamp the output * buffer */ - picture->reordered_opaque = context->reordered_opaque; GST_DEBUG_OBJECT (ffmpegdec, "opaque value SN %d", (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); - picture->reordered_opaque = context->reordered_opaque; - /* 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 * function. */ |