diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-18 21:27:15 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-22 00:30:32 +0200 |
commit | 859d9d70f9faf87bfc3fe23f97c38fd661367778 (patch) | |
tree | b4cd14bdf22fc6115fe74558cccbb572437595e6 /libavcodec/encode.c | |
parent | e2e31815191254ef5581213639f4bed8e4a8be25 (diff) | |
download | ffmpeg-859d9d70f9faf87bfc3fe23f97c38fd661367778.tar.gz |
avcodec/encode: Remove dead deprecated check
The wrapper for the legacy channel layout API already sets
AVCodecContext.channels based upon AVCodecContext.channel_layout
if the latter is set while the former is unset.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/encode.c')
-rw-r--r-- | libavcodec/encode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/encode.c b/libavcodec/encode.c index 049b71c6f4..ffac2c1ff3 100644 --- a/libavcodec/encode.c +++ b/libavcodec/encode.c @@ -631,8 +631,6 @@ FF_DISABLE_DEPRECATION_WARNINGS buf, channels, avctx->channels); return AVERROR(EINVAL); } - } else if (avctx->channel_layout) { - avctx->channels = av_get_channel_layout_nb_channels(avctx->channel_layout); } if (avctx->channels < 0) { av_log(avctx, AV_LOG_ERROR, "Specified number of channels %d is not supported\n", |