jpegdec: Add data skipping on input

Add missing bytes skipping when bad input is received.

https://bugzilla.gnome.org/show_bug.cgi?id=710762
This commit is contained in:
Thiago Santos 2013-10-28 21:28:33 -03:00
parent fdfc6a2a86
commit 673b8ca1c1

View file

@ -374,9 +374,8 @@ gst_jpeg_dec_parse (GstVideoDecoder * bdec, GstVideoCodecFrame * frame,
/* Skip this frame if we found another SOI marker */
GST_DEBUG ("0x%08x: SOI marker before EOI, skipping", offset + 2);
dec->parse_resync = FALSE;
/* FIXME : Need to skip data */
toadd -= offset + 2;
goto have_full_frame;
size = offset + 2;
goto drop_frame;
}