diff options
author | Seungha Yang <seungha@centricular.com> | 2020-11-15 03:41:27 +0900 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-11-16 14:25:36 +0000 |
commit | fec686145e71c1f110c84894a4ee1d21fbaeedf4 (patch) | |
tree | 48a0ccc610781ad98a54a5b8a673730193ca8f09 /gst-libs | |
parent | b83d452cc228865be906fc011ed241539ece47f4 (diff) | |
download | gstreamer-plugins-bad-fec686145e71c1f110c84894a4ee1d21fbaeedf4.tar.gz |
codecs: h264decoder: Fix MMCO type 1 for interlaced stream
If field_pic_flag of current picture is equal to zero,
both field of reference field pair should be marked as
"unused for reference"
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1810>
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/codecs/gsth264picture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/codecs/gsth264picture.c b/gst-libs/gst/codecs/gsth264picture.c index 9f8bf76b7..f215200b5 100644 --- a/gst-libs/gst/codecs/gsth264picture.c +++ b/gst-libs/gst/codecs/gsth264picture.c @@ -836,7 +836,7 @@ gst_h264_dpb_perform_memory_management_control_operation (GstH264Dpb * dpb, other = gst_h264_dpb_get_short_ref_by_pic_num (dpb, pic_num_x); if (other) { gst_h264_picture_set_reference (other, - GST_H264_PICTURE_REF_NONE, FALSE); + GST_H264_PICTURE_REF_NONE, GST_H264_PICTURE_IS_FRAME (picture)); GST_TRACE ("MMCO-1: unmark short-term ref picture %p, (poc %d)", other, other->pic_order_cnt); } else { |