mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
jpegparse: subtract id-str size from the remaining read
Fixes a regression from the patches in bug #626618.
This commit is contained in:
parent
3a4a0c492e
commit
b84dd0a766
1 changed files with 2 additions and 0 deletions
|
@ -623,6 +623,7 @@ gst_jpeg_parse_app1 (GstJpegParse * parse, GstByteReader * reader)
|
|||
/* skip id + NUL + padding */
|
||||
if (!gst_byte_reader_skip (reader, 6))
|
||||
return FALSE;
|
||||
size -= 6;
|
||||
|
||||
/* handle exif metadata */
|
||||
if (!gst_byte_reader_get_data (reader, size, &data))
|
||||
|
@ -639,6 +640,7 @@ gst_jpeg_parse_app1 (GstJpegParse * parse, GstByteReader * reader)
|
|||
/* skip the id + NUL */
|
||||
if (!gst_byte_reader_skip (reader, 29))
|
||||
return FALSE;
|
||||
size -= 29;
|
||||
|
||||
/* handle xmp metadata */
|
||||
if (!gst_byte_reader_get_data (reader, size, &data))
|
||||
|
|
Loading…
Reference in a new issue