h264parse: avoid bogus frame parsing state
This commit is contained in:
parent
571e95cf10
commit
160207abb9
@ -507,6 +507,8 @@ gst_h264_parse_check_valid_frame (GstBaseParse * parse,
|
||||
if (sc_pos == -1) {
|
||||
/* SC not found, need more data */
|
||||
sc_pos = GST_BUFFER_SIZE (buffer) - 3;
|
||||
/* avoid going < 0 later on */
|
||||
nal_pos = next_sc_pos = sc_pos;
|
||||
goto more;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user