From c50695c14b0856d0cd2573a0b9a0c0f40a6d8270 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 6 Dec 2010 17:45:38 +0100 Subject: [PATCH] jpegdec: avoid infinite loop when resyncing Fixes #635734 (partly). --- ext/jpeg/gstjpegdec.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.7.4