typefindfunctions: Detect AVF files as RIFF files too
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 26 Aug 2009 07:08:12 +0000 (09:08 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 26 Aug 2009 07:10:19 +0000 (09:10 +0200)
AVF is valid RIFF but has AVF0 as first fourcc instead of RIFF.

Partially fixes bug #593117.

gst/typefind/gsttypefindfunctions.c

index e308826..2ce9e68 100644 (file)
@@ -3298,7 +3298,7 @@ riff_type_find (GstTypeFind * tf, gpointer private)
   GstTypeFindData *riff_data = (GstTypeFindData *) private;
   guint8 *data = gst_type_find_peek (tf, 0, 12);
 
-  if (data && memcmp (data, "RIFF", 4) == 0) {
+  if (data && (memcmp (data, "RIFF", 4) == 0 || memcmp (data, "AVF0", 4) == 0)) {
     data += 8;
     if (memcmp (data, riff_data->data, 4) == 0)
       gst_type_find_suggest (tf, riff_data->probability, riff_data->caps);