From cd883aa60c1133196a6ae052884d15c295c37dde Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Sat, 12 Dec 2009 16:28:36 -0300 Subject: [PATCH] qtdemux: Correctly parse classification tags In clsf atoms, the language code is 2 bytes long, not 4. --- gst/qtdemux/qtdemux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 9849af3e..dd9410e 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -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. -- 2.7.4