codecs: h264decoder: Reset frame number per MMCO type 5
authorSeungha Yang <seungha@centricular.com>
Thu, 5 Nov 2020 10:30:35 +0000 (19:30 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 5 Nov 2020 14:56:28 +0000 (14:56 +0000)
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1768>

gst-libs/gst/codecs/gsth264picture.c

index 54bc760..6b2a106 100644 (file)
@@ -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.