diff wav.c @ 3233:e2bdb989f7da libavformat

Decrease returning probe score for WAV demuxer to avoid probe conflict between WAV and future ACT demuxer. This is necessary because ACT has standard WAV header at top of it's own.
author voroshil
date Sat, 19 Apr 2008 14:52:19 +0000
parents d52c718e83f9
children 7a0230981402
line wrap: on
line diff
--- a/wav.c	Fri Apr 18 17:29:58 2008 +0000
+++ b/wav.c	Sat Apr 19 14:52:19 2008 +0000
@@ -145,7 +145,12 @@
         p->buf[2] == 'F' && p->buf[3] == 'F' &&
         p->buf[8] == 'W' && p->buf[9] == 'A' &&
         p->buf[10] == 'V' && p->buf[11] == 'E')
-        return AVPROBE_SCORE_MAX;
+        /*
+          Since ACT demuxer has standard WAV header at top of it's own,
+          returning score is decreased to avoid probe conflict
+          between ACT and WAV.
+        */
+        return AVPROBE_SCORE_MAX - 1;
     else
         return 0;
 }