jpegparse: avoid infinite loop when resyncing
This commit is contained in:
parent
7abe0a56af
commit
0a26e138dd
@ -406,6 +406,7 @@ gst_jpeg_parse_get_image_length (GstJpegParse * parse)
|
|||||||
if (noffset < 0) {
|
if (noffset < 0) {
|
||||||
/* ignore and continue resyncing until we hit the end
|
/* ignore and continue resyncing until we hit the end
|
||||||
* of our data or find a sync point that looks okay */
|
* of our data or find a sync point that looks okay */
|
||||||
|
offset++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
GST_DEBUG ("found sync at 0x%x", offset + 2);
|
GST_DEBUG ("found sync at 0x%x", offset + 2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user