mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
codecs: h264decoder: Don't fill gap picture if it's not allowed
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>
This commit is contained in:
parent
330b2c6b7c
commit
6a6f8c967c
1 changed files with 4 additions and 1 deletions
|
@ -632,7 +632,10 @@ gst_h264_decoder_handle_frame_num_gap (GstH264Decoder * self, gint frame_num)
|
|||
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)",
|
||||
|
|
Loading…
Reference in a new issue