mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
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:
parent
ff17a404b3
commit
9a090538be
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue