qtdemux: Correctly parse classification tags
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Sat, 12 Dec 2009 19:28:36 +0000 (16:28 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Sat, 12 Dec 2009 19:31:35 +0000 (16:31 -0300)
In clsf atoms, the language code is 2 bytes long, not 4.

gst/qtdemux/qtdemux.c

index 9849af3..dd9410e 100644 (file)
@@ -5633,8 +5633,7 @@ qtdemux_tag_add_classification (GstQTDemux * qtdemux, const char *tag,
   table = QT_UINT16 ((guint8 *) node->data + offset);
 
   /* Language code skipped */
-
-  offset += 4;
+  offset += 2;
 
   /* Tag format: "XXXX://Y[YYYY]/classification info string"
    * XXXX: classification entity, fixed length 4 chars.