diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-02 23:48:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-02 23:50:00 +0100 |
commit | 1bc2fa447c22df09d312a7fba7e95531cfb051f8 (patch) | |
tree | 436950544900d5124d21e01cb67f513568694b0e /libavformat/utils.c | |
parent | 9f6f4962fbfdbaaa5ae82d1cf216356ce4a64e1c (diff) | |
download | ffmpeg-1bc2fa447c22df09d312a7fba7e95531cfb051f8.tar.gz |
avformat: use AVPROBE_SCORE_STREAM_RETRY, instead of AVPROBE_SCORE_RETRY - 1
This makes the code clearer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index c094eec674..c2705ac4ff 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -659,7 +659,7 @@ no_packet: if (end || av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) { int score = set_codec_from_probe_data(s, st, pd); - if ( (st->codec->codec_id != AV_CODEC_ID_NONE && score > AVPROBE_SCORE_RETRY-1) + if ( (st->codec->codec_id != AV_CODEC_ID_NONE && score > AVPROBE_SCORE_STREAM_RETRY) || end) { pd->buf_size = 0; av_freep(&pd->buf); |