From 1871a6025d5d2ba583fb6eeacb7748246cb81a50 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 28 Sep 2009 20:25:35 -0700 Subject: [PATCH] typefind: detect 'ftypqt ' as video/quicktime --- gst/typefind/gsttypefindfunctions.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 418a51a..77edb7e 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -2218,9 +2218,13 @@ qt_type_find (GstTypeFind * tf, gpointer unused) guint64 offset = 0; guint64 size; - while ((data = gst_type_find_peek (tf, offset, 8)) != NULL) { + while ((data = gst_type_find_peek (tf, offset, 12)) != NULL) { guint64 new_offset; + if (STRNCMP (&data[4], "ftypqt ", 8) == 0) { + tip = GST_TYPE_FIND_MAXIMUM; + break; + } /* box/atom types that are in common with ISO base media file format */ if (STRNCMP (&data[4], "moov", 4) == 0 || STRNCMP (&data[4], "mdat", 4) == 0 || -- 2.7.4