projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e11fdf6
)
jpegparse: use byte reader accessors
author
Víctor Manuel Jáquez Leal
<vjaquez@igalia.com>
Fri, 13 Aug 2010 11:14:30 +0000
(13:14 +0200)
committer
Stefan Kost
<ensonic@users.sf.net>
Fri, 19 Nov 2010 14:27:24 +0000
(16:27 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=626618
gst/jpegformat/gstjpegparse.c
patch
|
blob
|
history
diff --git
a/gst/jpegformat/gstjpegparse.c
b/gst/jpegformat/gstjpegparse.c
index
d09c4ca
..
f5582ac
100644
(file)
--- a/
gst/jpegformat/gstjpegparse.c
+++ b/
gst/jpegformat/gstjpegparse.c
@@
-666,7
+666,9
@@
gst_jpeg_parse_read_header (GstJpegParse * parse, GstBuffer * buffer)
memmove (&data[pos], &data[pos + size],
GST_BUFFER_SIZE (buffer) - (pos + size));
GST_BUFFER_SIZE (buffer) -= size;
- reader.size -= size;
+
+ if (!gst_byte_reader_set_pos (&reader, pos - size))
+ goto error;
#else
if (!gst_byte_reader_get_uint16_be (&reader, &size))
goto error;