From 0a26e138dda3f09b02790f5fd68c9ea98966bade Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 6 Dec 2010 18:18:11 +0100 Subject: [PATCH] jpegparse: avoid infinite loop when resyncing --- gst/jpegformat/gstjpegparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/jpegformat/gstjpegparse.c b/gst/jpegformat/gstjpegparse.c index d22dd46ab0..a08579e573 100644 --- a/gst/jpegformat/gstjpegparse.c +++ b/gst/jpegformat/gstjpegparse.c @@ -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);