mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
jpegparse: fix exif frame size
Skip the correct number of bytes when reading exif data Fixes #623854
This commit is contained in:
parent
c15b64a515
commit
1d57953496
1 changed files with 2 additions and 2 deletions
|
@ -557,7 +557,7 @@ gst_jpeg_parse_read_header (GstJpegParse * parse, GstBuffer * buffer)
|
||||||
|
|
||||||
if (!strcmp (id_str, "Exif")) {
|
if (!strcmp (id_str, "Exif")) {
|
||||||
const guint8 *exif_data = NULL;
|
const guint8 *exif_data = NULL;
|
||||||
guint exif_size = size - 2;
|
guint exif_size = size - 2 - 6; /* 6 bytes for "Exif\0\0 id" */
|
||||||
GstTagList *tags;
|
GstTagList *tags;
|
||||||
GstBuffer *buf;
|
GstBuffer *buf;
|
||||||
|
|
||||||
|
@ -582,7 +582,7 @@ gst_jpeg_parse_read_header (GstJpegParse * parse, GstBuffer * buffer)
|
||||||
marker, id_str, size - 2);
|
marker, id_str, size - 2);
|
||||||
} else if (!strcmp (id_str, "http://ns.adobe.com/xap/1.0/")) {
|
} else if (!strcmp (id_str, "http://ns.adobe.com/xap/1.0/")) {
|
||||||
const guint8 *xmp_data = NULL;
|
const guint8 *xmp_data = NULL;
|
||||||
guint xmp_size = size - 2 - 29;
|
guint xmp_size = size - 2 - 29; /* 29 bytes for the id */
|
||||||
GstTagList *tags;
|
GstTagList *tags;
|
||||||
GstBuffer *buf;
|
GstBuffer *buf;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue