mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
h264parse: properly determine skip amount when no NAL start found yet
This commit is contained in:
parent
c54144cc16
commit
75b8ddb6cf
1 changed files with 3 additions and 1 deletions
|
@ -686,7 +686,9 @@ gst_h264_parse_check_valid_frame (GstBaseParse * parse,
|
|||
current_off = size - 3;
|
||||
goto parsing_error;
|
||||
case GST_H264_PARSER_NO_NAL:
|
||||
current_off = size - 3;
|
||||
/* don't expect to have found any NAL so far */
|
||||
g_assert (h264parse->nalu.size == 0);
|
||||
current_off = h264parse->nalu.sc_offset = size - 3;
|
||||
goto more;
|
||||
case GST_H264_PARSER_BROKEN_DATA:
|
||||
GST_WARNING_OBJECT (h264parse, "input stream is corrupt; "
|
||||
|
|
Loading…
Reference in a new issue