jpegparse: Fix APP1 marker segment parsing

Reposition the bytereader for proper skipping of
APP1 marker segment if it is not Exif.

https://bugzilla.gnome.org/show_bug.cgi?id=795117
This commit is contained in:
Sreerenj Balachandran 2018-04-16 14:00:39 -08:00
parent ff17a404b3
commit 9a090538be

View file

@ -572,6 +572,9 @@ gst_jpeg_parse_app1 (GstJpegParse * parse, GstByteReader * reader)
APP1, id_str, size);
} else {
/* restore the byte position and size */
reader->size += 2;
reader->byte -= 2;
if (!gst_jpeg_parse_skip_marker (parse, reader, APP1))
return FALSE;
}