Changed a >= test to a > on the input buffer size in gst_tag_list_from_vorbiscomment_...
authorChristophe Fergeau <teuf@gnome.org>
Mon, 8 Dec 2003 22:07:57 +0000 (22:07 +0000)
committerChristophe Fergeau <teuf@gnome.org>
Mon, 8 Dec 2003 22:07:57 +0000 (22:07 +0000)
Original commit message from CVS:
Changed a >= test to a > on the input buffer size in gst_tag_list_from_vorbiscomment_buffer. This was preventing the parsing of vorbiscomments not ending with a sync byte (which seems to happen in flac files)

gst/tags/gstvorbistag.c

index 6c31975..41e4a3c 100644 (file)
@@ -328,7 +328,7 @@ gst_tag_list_from_vorbiscomment_buffer (const GstBuffer *buffer, const guint8 *i
   cur_size = GUINT32_FROM_LE (*((guint32 *) data));                            \
   data += 4;                                                                   \
   size -= 4;                                                                   \
-  if (cur_size >= size) goto error;                                            \
+  if (cur_size > size) goto error;                                             \
   cur = data;                                                                  \
 }G_STMT_END
   gchar *cur, *value;