mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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:
parent
fdfc6a2a86
commit
673b8ca1c1
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue