From eb0cdfe20fe621a423c4d95a88886cb320620c7c Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 12 Apr 2012 15:48:00 +0200 Subject: [PATCH] flvdemux: Use unchecked variant of GstByteReader We know there's at least 7 bytes (checked above) --- gst/flv/gstflvdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c index a0dc938..da2b13a 100644 --- a/gst/flv/gstflvdemux.c +++ b/gst/flv/gstflvdemux.c @@ -544,7 +544,7 @@ gst_flv_demux_parse_tag_script (GstFlvDemux * demux, GstBuffer * buffer) gst_buffer_map (buffer, &map, GST_MAP_READ); gst_byte_reader_init (&reader, map.data, map.size); - gst_byte_reader_skip (&reader, 7); + gst_byte_reader_skip_unchecked (&reader, 7); GST_LOG_OBJECT (demux, "parsing a script tag"); -- 2.7.4