jacosub_probe: slightly increase the score to limit misdetection.
authorClément Bœsch <ubitux@gmail.com>
Thu, 31 May 2012 20:12:46 +0000 (22:12 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 6 Jun 2012 22:55:24 +0000 (00:55 +0200)
(cherry picked from commit 303619d3ca9efa0031f6fede7dedeb27fcfb1756)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/jacosubdec.c

index 615191e..67f4c37 100644 (file)
@@ -67,7 +67,7 @@ static int jacosub_probe(AVProbeData *p)
             ptr++;
         if (*ptr != '#' && *ptr != '\n') {
             if (timed_line(ptr))
-                return AVPROBE_SCORE_MAX / 2;
+                return AVPROBE_SCORE_MAX/2 + 1;
             return 0;
         }
         ptr += strcspn(ptr, "\n") + 1;