mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
h264parser: Removed impossible error case
Same as done for H264, this error was trying to catch the case where we had a start code without any bytes afterward. This will never happen since the start code scanner only returns a match if there is one byte after start code (pattern 0x00000100 / mask 0xffffff00). In H264, once byte is sufficient to identify the NALU. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1251>
This commit is contained in:
parent
dc4c470d75
commit
80524fb3da
1 changed files with 0 additions and 6 deletions
|
@ -1444,12 +1444,6 @@ gst_h264_parser_identify_nalu_unchecked (GstH264NalParser * nalparser,
|
|||
return GST_H264_PARSER_NO_NAL;
|
||||
}
|
||||
|
||||
if (offset + off1 == size - 1) {
|
||||
GST_DEBUG ("Missing data to identify nal unit");
|
||||
|
||||
return GST_H264_PARSER_ERROR;
|
||||
}
|
||||
|
||||
nalu->sc_offset = offset + off1;
|
||||
|
||||
/* sc might have 2 or 3 0-bytes */
|
||||
|
|
Loading…
Reference in a new issue