jpegparse: avoid infinite loop when resyncing
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 6 Dec 2010 17:18:11 +0000 (18:18 +0100)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 8 Dec 2010 15:30:11 +0000 (16:30 +0100)
gst/jpegformat/gstjpegparse.c

index d22dd46..a08579e 100644 (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);