aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/loasdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-05 13:16:53 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-05 13:34:56 +0200
commit097f668047c8dd6308217c244075b1f97d496116 (patch)
tree08b6d6417d571fed496740ebece94bd8ec4874fe /libavformat/loasdec.c
parenta1f234be11ea040d59f92279b331d5aeef3243b4 (diff)
downloadffmpeg-097f668047c8dd6308217c244075b1f97d496116.tar.gz
avformat: replace "AVPROBE_SCORE_MAX / X" by AVPROBE_SCORE_EXTENSION / Y
Demuxers where the changed code looked less readable where skiped Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/loasdec.c')
-rw-r--r--libavformat/loasdec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/loasdec.c b/libavformat/loasdec.c
index d3a8dbd6cd..05ef0fe3ad 100644
--- a/libavformat/loasdec.c
+++ b/libavformat/loasdec.c
@@ -52,9 +52,9 @@ static int loas_probe(AVProbeData *p)
if(buf == buf0)
first_frames= frames;
}
- if (first_frames>=3) return AVPROBE_SCORE_MAX/2+1;
- else if(max_frames>100)return AVPROBE_SCORE_MAX/2;
- else if(max_frames>=3) return AVPROBE_SCORE_MAX/4;
+ if (first_frames>=3) return AVPROBE_SCORE_EXTENSION+1;
+ else if(max_frames>100)return AVPROBE_SCORE_EXTENSION;
+ else if(max_frames>=3) return AVPROBE_SCORE_EXTENSION / 2;
else return 0;
}