flacparse: fix picture parsing
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 13 Sep 2010 23:48:58 +0000 (02:48 +0300)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 8 Apr 2011 17:07:09 +0000 (18:07 +0100)
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
gst/audioparsers/gstflacparse.c

index 571166b..9f8de43 100644 (file)
@@ -1040,6 +1040,9 @@ gst_flac_parse_handle_picture (GstFlacParse * flacparse, GstBuffer * buffer)
   guint32 img_len = 0, img_type = 0;
   guint32 img_mimetype_len = 0, img_description_len = 0;
 
+  if (!gst_byte_reader_skip (&reader, 4))
+    goto error;
+
   if (!gst_byte_reader_get_uint32_be (&reader, &img_type))
     goto error;