jpegparse: avoid infinite loop when resyncing

This commit is contained in:
Mark Nauwelaerts 2010-12-06 18:18:11 +01:00 committed by Edward Hervey
parent 7abe0a56af
commit 0a26e138dd

View file

@ -406,6 +406,7 @@ gst_jpeg_parse_get_image_length (GstJpegParse * parse)
if (noffset < 0) {
/* ignore and continue resyncing until we hit the end
* of our data or find a sync point that looks okay */
offset++;
continue;
}
GST_DEBUG ("found sync at 0x%x", offset + 2);