ffmpeg | branch: master | Paul B Mahol <one...@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);

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to