mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
gst/id3demux/id3tags.c: If a broken tag has 0 bytes payload, at least still skip the 10 byte header
Original commit message from CVS: * gst/id3demux/id3tags.c: (id3demux_read_id3v2_tag): If a broken tag has 0 bytes payload, at least still skip the 10 byte header
This commit is contained in:
parent
0c2414650a
commit
041a4a0d89
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-12-28 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* gst/id3demux/id3tags.c: (id3demux_read_id3v2_tag):
|
||||
If a broken tag has 0 bytes payload, at least still skip
|
||||
the 10 byte header
|
||||
|
||||
2005-12-22 Philippe Khalaf <burger@speedy.org>
|
||||
|
||||
* gst-plugins-good/gst/rtp/gstrtph263pdepay.h:
|
||||
|
|
|
@ -143,9 +143,12 @@ id3demux_read_id3v2_tag (GstBuffer * buffer, guint * id3v2_size,
|
|||
/* Read the size from the header */
|
||||
read_size = read_synch_uint (data + 6, 4);
|
||||
if (read_size == 0) {
|
||||
/* Tag has no frames attached. Ignore it, but skip the header */
|
||||
if (id3v2_size)
|
||||
*id3v2_size = ID3V2_HDR_SIZE;
|
||||
return ID3TAGS_BROKEN_TAG;
|
||||
}
|
||||
read_size += 10;
|
||||
read_size += ID3V2_HDR_SIZE;
|
||||
|
||||
/* Expand the read size to include a footer if there is one */
|
||||
if (flags & ID3V2_HDR_FLAG_FOOTER) {
|
||||
|
|
Loading…
Reference in a new issue