h264parse: avoid bogus frame parsing state

This commit is contained in:
Mark Nauwelaerts 2011-06-21 12:41:47 +02:00
parent 571e95cf10
commit 160207abb9

View file

@ -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;
}