diff options
author | Stefan Kost <ensonic@users.sf.net> | 2010-02-17 12:34:38 +0200 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2010-02-17 13:12:00 +0200 |
commit | caf2be2115ef4d52adf0b454bb24ea3f2458b1ec (patch) | |
tree | 0cde5a223921bb2e412bb4d60a08c88822a173df | |
parent | 87580aa59d1914c4fa8c7f3025cb0d78bb3e0337 (diff) |
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
-rw-r--r-- | gst/jpegformat/gstjpegparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/jpegformat/gstjpegparse.c b/gst/jpegformat/gstjpegparse.c index 64818cd3a..18aafd8af 100644 --- a/gst/jpegformat/gstjpegparse.c +++ b/gst/jpegformat/gstjpegparse.c @@ -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 |