You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
@@ -631,8 +631,6 @@ FF_DISABLE_DEPRECATION_WARNINGS
|
|||||||
buf, channels, avctx->channels);
|
buf, channels, avctx->channels);
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
} else if (avctx->channel_layout) {
|
|
||||||
avctx->channels = av_get_channel_layout_nb_channels(avctx->channel_layout);
|
|
||||||
}
|
}
|
||||||
if (avctx->channels < 0) {
|
if (avctx->channels < 0) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Specified number of channels %d is not supported\n",
|
av_log(avctx, AV_LOG_ERROR, "Specified number of channels %d is not supported\n",
|
||||||
|
Reference in New Issue
Block a user