libvo-amrwbenc: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
committed by
James Almer
parent
429327075a
commit
53bf0ed544
@@ -87,7 +87,7 @@ static av_cold int amr_wb_encode_init(AVCodecContext *avctx)
|
|||||||
return AVERROR(ENOSYS);
|
return AVERROR(ENOSYS);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (avctx->channels != 1) {
|
if (avctx->ch_layout.nb_channels != 1) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Only mono supported\n");
|
av_log(avctx, AV_LOG_ERROR, "Only mono supported\n");
|
||||||
return AVERROR(ENOSYS);
|
return AVERROR(ENOSYS);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user