From: Mark Nauwelaerts Date: Mon, 6 Dec 2010 16:45:38 +0000 (+0100) Subject: jpegdec: avoid infinite loop when resyncing X-Git-Tag: RELEASE-0.10.27~251 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c50695c14b0856d0cd2573a0b9a0c0f40a6d8270;p=platform%2Fupstream%2Fgst-plugins-good.git jpegdec: avoid infinite loop when resyncing Fixes #635734 (partly). --- diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c index 50febc4..fedf25e 100644 --- a/ext/jpeg/gstjpegdec.c +++ b/ext/jpeg/gstjpegdec.c @@ -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);