jpegdec: fix skipping extra 0xff markers

Fixes #623585.
This commit is contained in:
Mark Nauwelaerts 2010-07-05 12:05:57 +02:00
parent 7cbfe3eae1
commit 6f84bbe34e

View file

@ -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,