mirror of https://git.ffmpeg.org/ffmpeg.git
hcom: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
b5b18440f1
commit
b14fa1b95d
|
@ -44,7 +44,7 @@ static av_cold int hcom_init(AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
HCOMContext *s = avctx->priv_data;
|
HCOMContext *s = avctx->priv_data;
|
||||||
|
|
||||||
if (avctx->channels != 1) {
|
if (avctx->ch_layout.nb_channels != 1) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "invalid number of channels\n");
|
av_log(avctx, AV_LOG_ERROR, "invalid number of channels\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue