jpegdec: avoid infinite loop when resyncing
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 6 Dec 2010 16:45:38 +0000 (17:45 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 6 Dec 2010 18:14:41 +0000 (19:14 +0100)
Fixes #635734 (partly).

ext/jpeg/gstjpegdec.c

index 50febc4..fedf25e 100644 (file)
@@ -498,6 +498,7 @@ gst_jpeg_dec_parse_image_data (GstJpegDec * dec)
       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);