mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
h264parse: avoid bogus frame parsing state
This commit is contained in:
parent
571e95cf10
commit
160207abb9
1 changed files with 2 additions and 0 deletions
|
@ -507,6 +507,8 @@ gst_h264_parse_check_valid_frame (GstBaseParse * parse,
|
||||||
if (sc_pos == -1) {
|
if (sc_pos == -1) {
|
||||||
/* SC not found, need more data */
|
/* SC not found, need more data */
|
||||||
sc_pos = GST_BUFFER_SIZE (buffer) - 3;
|
sc_pos = GST_BUFFER_SIZE (buffer) - 3;
|
||||||
|
/* avoid going < 0 later on */
|
||||||
|
nal_pos = next_sc_pos = sc_pos;
|
||||||
goto more;
|
goto more;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue