diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2017-02-01 02:57:40 +0100 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2017-02-01 02:57:40 +0100 |
commit | 4bd5d824e927ac22c71186150fda8a8bf4327eed (patch) | |
tree | 6e5082675eaae4f37627b780bc6d06c9d5a28bee | |
parent | 842e98b4d83d8cf297e2bc2761f1f47eb89e49e4 (diff) | |
download | ffmpeg-4bd5d824e927ac22c71186150fda8a8bf4327eed.tar.gz |
boadec: remove log messages
Requested-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
-rw-r--r-- | libavformat/boadec.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libavformat/boadec.c b/libavformat/boadec.c index 6055effcad..730e9573d5 100644 --- a/libavformat/boadec.c +++ b/libavformat/boadec.c @@ -54,19 +54,13 @@ static int read_header(AVFormatContext *s) avio_rl32(s->pb); st->codecpar->sample_rate = avio_rl32(s->pb); st->codecpar->channels = avio_rl32(s->pb); - if (st->codecpar->channels > FF_SANE_NB_CHANNELS) { - av_log(s, AV_LOG_ERROR, "Too many channels %d > %d\n", - st->codecpar->channels, FF_SANE_NB_CHANNELS); + if (st->codecpar->channels > FF_SANE_NB_CHANNELS) return AVERROR(ENOSYS); - } s->internal->data_offset = avio_rl32(s->pb); avio_r8(s->pb); st->codecpar->block_align = avio_rl32(s->pb); - if (st->codecpar->block_align > INT_MAX / FF_SANE_NB_CHANNELS) { - av_log(s, AV_LOG_ERROR, "Too large block alignment %d > %d\n", - st->codecpar->block_align, INT_MAX / FF_SANE_NB_CHANNELS); + if (st->codecpar->block_align > INT_MAX / FF_SANE_NB_CHANNELS) return AVERROR_INVALIDDATA; - } st->codecpar->block_align *= st->codecpar->channels; avio_seek(s->pb, s->internal->data_offset, SEEK_SET); |