From 81151145b2db3271193ecdc53b3214da8d0b07b9 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 5 Nov 2020 19:30:35 +0900 Subject: [PATCH] codecs: h264decoder: Reset frame number per MMCO type 5 It should be cleared so that avoid wrong frame gap detection for following pictures. Passing 4 more conformance bitstream tests * MR2_TANDBERG_E * MR3_TANDBERG_B * MR4_TANDBERG_C * MR5_TANDBERG_C Part-of: --- gst-libs/gst/codecs/gsth264picture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/codecs/gsth264picture.c b/gst-libs/gst/codecs/gsth264picture.c index 54bc7602ad..6b2a106d14 100644 --- a/gst-libs/gst/codecs/gsth264picture.c +++ b/gst-libs/gst/codecs/gsth264picture.c @@ -811,6 +811,7 @@ gst_h264_dpb_perform_memory_management_control_operation (GstH264Dpb * dpb, other->long_term = FALSE; } picture->mem_mgmt_5 = TRUE; + picture->frame_num = 0; break; case 6: /* 8.2.5.4.6 Replace long term reference pictures with current picture.