aboutsummaryrefslogtreecommitdiff
path: root/libavformat/wavdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer2013-05-05 13:16:53 +0200
committerMichael Niedermayer2013-05-05 13:34:56 +0200
commit097f668047c8dd6308217c244075b1f97d496116 (patch)
tree08b6d6417d571fed496740ebece94bd8ec4874fe /libavformat/wavdec.c
parenta1f234be11ea040d59f92279b331d5aeef3243b4 (diff)
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/wavdec.c')
-rw-r--r--libavformat/wavdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index 74dbbff7f4..bd39ffee7f 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -99,7 +99,7 @@ static int wav_probe(AVProbeData *p)
static void handle_stream_probing(AVStream *st)
{
if (st->codec->codec_id == AV_CODEC_ID_PCM_S16LE) {
- st->request_probe = AVPROBE_SCORE_MAX/2;
+ st->request_probe = AVPROBE_SCORE_EXTENSION;
st->probe_packets = FFMIN(st->probe_packets, 4);
}
}
@@ -427,7 +427,7 @@ static int wav_read_packet(AVFormatContext *s, AVPacket *pkt)
enum AVCodecID codec;
ret = ff_spdif_probe(s->pb->buffer, s->pb->buf_end - s->pb->buffer,
&codec);
- if (ret > AVPROBE_SCORE_MAX / 2) {
+ if (ret > AVPROBE_SCORE_EXTENSION) {
s->streams[0]->codec->codec_id = codec;
wav->spdif = 1;
} else {