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:
Stefan Kost 2010-02-17 12:34:38 +02:00
parent 87580aa59d
commit caf2be2115

View file

@ -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