From 6f84bbe34e95bedb58a53f8ec5b56a1f15304485 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 5 Jul 2010 12:05:57 +0200 Subject: [PATCH] jpegdec: fix skipping extra 0xff markers Fixes #623585. --- ext/jpeg/gstjpegdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c index 5a15799..26e1717 100644 --- a/ext/jpeg/gstjpegdec.c +++ b/ext/jpeg/gstjpegdec.c @@ -400,7 +400,7 @@ gst_jpeg_dec_parse_image_data (GstJpegDec * dec) /* may have marker, but could have been resyncng */ resync = resync || dec->parse_resync; /* Skip over extra 0xff */ - while ((noffset > 0) && ((value & 0xff) == 0xff)) { + while ((noffset >= 0) && ((value & 0xff) == 0xff)) { noffset++; noffset = gst_adapter_masked_scan_uint32_peek (adapter, 0x0000ff00, 0x0000ff00, -- 2.7.4