mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
jpegparse: return offset+length from _get_image_length().
_find_end_marker() find the position of the marker. EOI has a fixed length of 2 bytes that where missing. Fixes #608998
This commit is contained in:
parent
87580aa59d
commit
caf2be2115
1 changed files with 2 additions and 2 deletions
|
@ -425,8 +425,8 @@ gst_jpeg_parse_get_image_length (GstJpegParse * parse)
|
|||
offset = gst_jpeg_parse_find_end_marker (parse, data, size);
|
||||
}
|
||||
}
|
||||
|
||||
return offset;
|
||||
/* position of EOI + the length of the marker */
|
||||
return offset + 2;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue