mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 09:42:19 +00:00
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.
This commit is contained in:
parent
cf0efcbff9
commit
b3cc87185a
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue