[FFmpeg-cvslog] avformat/adxdec: remove unneeded check for channels inside read_packet()

Paul B Mahol git at videolan.org
Sun Sep 10 23:38:05 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep 10 22:08:59 2023 +0200| [f95cb3d1343e84a0941c6e61c1c9ee812f344d58] | committer: Paul B Mahol

avformat/adxdec: remove unneeded check for channels inside read_packet()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f95cb3d1343e84a0941c6e61c1c9ee812f344d58
---

 libavformat/adxdec.c | 5 -----
 1 file changed, 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);



More information about the ffmpeg-cvslog mailing list