diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-09-15 13:28:14 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-09-15 13:28:14 +0000 |
commit | 0535f919d5780e861c1ae5be61dac950a6d8a442 (patch) | |
tree | a75dbe84702db60489de2d3197b35cd49d713fcf /libavformat/ncdec.c | |
parent | 2a3caca2b123b39eb718b434e067729a1544e1db (diff) | |
download | ffmpeg-0535f919d5780e861c1ae5be61dac950a6d8a442.tar.gz |
Do not return values above AVPROBE_SCORE_MAX from probe().
Originally committed as revision 19857 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ncdec.c')
-rw-r--r-- | libavformat/ncdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ncdec.c b/libavformat/ncdec.c index 056381b1c2..8e51f840d2 100644 --- a/libavformat/ncdec.c +++ b/libavformat/ncdec.c @@ -35,7 +35,7 @@ static int nc_probe(AVProbeData *probe_packet) size = AV_RL16(probe_packet->buf + 5); if (size + 20 > probe_packet->buf_size) - return 3*AVPROBE_SCORE_MAX/2; + return AVPROBE_SCORE_MAX/4; if (AV_RB32(probe_packet->buf+16+size) == NC_VIDEO_FLAG) return AVPROBE_SCORE_MAX; |