We should fill gap picture only if sps->gaps_in_frame_num_value_allowed_flag
is set.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1801>
if (!sps->gaps_in_frame_num_value_allowed_flag) {
/* This is likely the case where some frames were dropped.
* then we need to keep decoding without error out */
- GST_WARNING_OBJECT (self, "Invalid frame num %d", frame_num);
+ GST_WARNING_OBJECT (self, "Invalid frame num %d, maybe frame drop",
+ frame_num);
+
+ return TRUE;
}
GST_DEBUG_OBJECT (self, "Handling frame num gap %d -> %d (MaxFrameNum: %d)",