diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-02-24 10:16:38 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-02-25 13:05:37 -0300 |
commit | 17e99a99a5bad1fa901792f896017973ecaf1584 (patch) | |
tree | 53f1197dfb6c019e00a16015553c9d772ac1cf21 | |
parent | e4929b41005082fe88b9b9b3e8b7365541b77179 (diff) |
typefindfunctions: identify adobe's f4v isomedia varianthds
Either by checking the ftyp of a common first atom: 'afra'
-rw-r--r-- | gst/typefind/gsttypefindfunctions.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 37a9aaef5..dc88b1fe3 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -3139,6 +3139,12 @@ qt_type_find (GstTypeFind * tf, gpointer unused) break; } + if (STRNCMP (&data[4], "ftypf4v ", 8) == 0) { + tip = GST_TYPE_FIND_MAXIMUM; + variant = "f4v"; + 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 || @@ -3160,6 +3166,11 @@ qt_type_find (GstTypeFind * tf, gpointer unused) STRNCMP (&data[4], "prfl", 4) == 0) { tip = GST_TYPE_FIND_MAXIMUM; break; + } + /* box/atoms types specific to F4V (adobe's fragmented) */ + else if (STRNCMP (&data[4], "afra", 4) == 0) { + tip = GST_TYPE_FIND_LIKELY; + variant = "f4v"; } else { tip = 0; break; |