[FFmpeg-cvslog] avcodec/wma: Remove redundant nb_channels check

Andreas Rheinhardt git at videolan.org
Thu Jul 3 21:32:41 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Jun 21 04:10:04 2025 +0200| [66acbb92a3b070158c3ab9eb9692753ce0b6005f] | committer: Andreas Rheinhardt

avcodec/wma: Remove redundant nb_channels check

Already checked generically as none of the codecs here
have the AV_CODEC_CAP_CHANNEL_CONF set.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 libavcodec/wma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/wma.c b/libavcodec/wma.c
index 31a422ee27..0a34c1b00e 100644
--- a/libavcodec/wma.c
+++ b/libavcodec/wma.c
@@ -87,7 +87,7 @@ av_cold int ff_wma_init(AVCodecContext *avctx, int flags2)
     int coef_vlc_table;
 
     if (avctx->sample_rate > 50000 ||
-        channels           <= 0 || channels    > 2            ||
+        channels    > 2            ||
         avctx->bit_rate    <= 0)
         return -1;
 



More information about the ffmpeg-cvslog mailing list