[gst-cvs] gst-plugins-bad: flacparse: fix picture parsing
Sebastian Dröge
slomo at kemper.freedesktop.org
Sun Oct 3 23:10:01 PDT 2010
Module: gst-plugins-bad
Branch: master
Commit: b6f1e8aa6808bc548392c2c768c865c03618cc81
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=b6f1e8aa6808bc548392c2c768c865c03618cc81
Author: Felipe Contreras <felipe.contreras at gmail.com>
Date: Tue Sep 14 02:48:58 2010 +0300
flacparse: fix picture parsing
Signed-off-by: Felipe Contreras <felipe.contreras at gmail.com>
---
gst/audioparsers/gstflacparse.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c
index 571166b..9f8de43 100644
--- a/gst/audioparsers/gstflacparse.c
+++ b/gst/audioparsers/gstflacparse.c
@@ -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;
More information about the Gstreamer-commits
mailing list