You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
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@outlook.com>
This commit is contained in:
@ -87,7 +87,7 @@ av_cold int ff_wma_init(AVCodecContext *avctx, int flags2)
|
|||||||
int coef_vlc_table;
|
int coef_vlc_table;
|
||||||
|
|
||||||
if (avctx->sample_rate > 50000 ||
|
if (avctx->sample_rate > 50000 ||
|
||||||
channels <= 0 || channels > 2 ||
|
channels > 2 ||
|
||||||
avctx->bit_rate <= 0)
|
avctx->bit_rate <= 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user