Commit b3cc8718 authored by Stefan Kost's avatar Stefan Kost
Browse files

gst-libs/gst/riff/riff-read.c: Fix handling of odd chunks in riff metadata.

Original commit message from CVS:
* gst-libs/gst/riff/riff-read.c:
Fix handling of odd chunks in riff metadata.
parent cf0efcbf
2008-12-09 Stefan Kost <ensonic@users.sf.net>
* gst-libs/gst/riff/riff-read.c:
Fix handling of odd chunks in riff metadata.
2008-12-08 Wim Taymans <wim.taymans@collabora.co.uk>
 
* gst/volume/gstvolume.c: (gst_volume_class_init),
......@@ -614,6 +614,10 @@ gst_riff_parse_info (GstElement * element,
tsize = GST_READ_UINT32_LE (data + 4);
size -= 8;
data += 8;
GST_DEBUG ("tag %" GST_FOURCC_FORMAT ", size %u",
GST_FOURCC_ARGS (tag), tsize);
if (tsize > size) {
GST_WARNING_OBJECT (element,
"Tagsize %d is larger than available data %d", tsize, size);
......@@ -715,6 +719,9 @@ gst_riff_parse_info (GstElement * element,
}
}
if (tsize & 1)
tsize++;
data += tsize;
size -= tsize;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment