Commit 6f84bbe3 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

jpegdec: fix skipping extra 0xff markers

Fixes #623585.
parent 7cbfe3ea
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment