diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2010-12-06 18:18:11 +0100 |
---|---|---|
committer | Edward Hervey <edward.hervey@collabora.co.uk> | 2010-12-08 16:30:11 +0100 |
commit | 0a26e138dda3f09b02790f5fd68c9ea98966bade (patch) | |
tree | 95a9fb1304c515ce68cd8823dbcf47e0fe875ee2 /gst/jpegformat | |
parent | 7abe0a56af44446eb153185f10736cfb11fcd0ff (diff) | |
download | gstreamer-plugins-bad-0a26e138dda3f09b02790f5fd68c9ea98966bade.tar.gz |
jpegparse: avoid infinite loop when resyncing
Diffstat (limited to 'gst/jpegformat')
-rw-r--r-- | gst/jpegformat/gstjpegparse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/jpegformat/gstjpegparse.c b/gst/jpegformat/gstjpegparse.c index d22dd46ab..a08579e57 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); |