diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-09-10 22:08:59 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-09-10 22:44:39 +0200 |
commit | f95cb3d1343e84a0941c6e61c1c9ee812f344d58 (patch) | |
tree | 44da13736bae6602adde04b2b45f69862fe1220b | |
parent | cfa47fd3310aa64d5c48e855bfcaf26d170bcbc1 (diff) | |
download | ffmpeg-f95cb3d1343e84a0941c6e61c1c9ee812f344d58.tar.gz |
avformat/adxdec: remove unneeded check for channels inside read_packet()
-rw-r--r-- | libavformat/adxdec.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libavformat/adxdec.c b/libavformat/adxdec.c index 982e825426..d808adbf3b 100644 --- a/libavformat/adxdec.c +++ b/libavformat/adxdec.c @@ -57,11 +57,6 @@ static int adx_read_packet(AVFormatContext *s, AVPacket *pkt) if (avio_feof(s->pb)) return AVERROR_EOF; - if (par->ch_layout.nb_channels <= 0) { - av_log(s, AV_LOG_ERROR, "invalid number of channels %d\n", par->ch_layout.nb_channels); - return AVERROR_INVALIDDATA; - } - size = BLOCK_SIZE * par->ch_layout.nb_channels; pkt->pos = avio_tell(s->pb); |