[FFmpeg-cvslog] jacosub_probe: slightly increase the score to limit misdetection.

Clément Bœsch git at videolan.org
Thu Jun 7 01:44:18 CEST 2012


ffmpeg | branch: release/0.11 | Clément Bœsch <ubitux at gmail.com> | Thu May 31 22:12:46 2012 +0200| [f46b57657b791b4536633a17fb139cccf5c57b0a] | committer: Michael Niedermayer

jacosub_probe: slightly increase the score to limit misdetection.
(cherry picked from commit 303619d3ca9efa0031f6fede7dedeb27fcfb1756)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f46b57657b791b4536633a17fb139cccf5c57b0a
---

 libavformat/jacosubdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/jacosubdec.c b/libavformat/jacosubdec.c
index 615191e..67f4c37 100644
--- a/libavformat/jacosubdec.c
+++ b/libavformat/jacosubdec.c
@@ -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;



More information about the ffmpeg-cvslog mailing list