From 11bc4fd653fab05a9e24f7aca22c913ffb238b5a Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 26 Jan 2016 23:33:55 +0100 Subject: avcodec/dvaudiodec: only stereo makes sense Signed-off-by: Paul B Mahol --- libavcodec/dvaudiodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/dvaudiodec.c') diff --git a/libavcodec/dvaudiodec.c b/libavcodec/dvaudiodec.c index 84db509c9a..1df3edfd62 100644 --- a/libavcodec/dvaudiodec.c +++ b/libavcodec/dvaudiodec.c @@ -34,7 +34,7 @@ static av_cold int decode_init(AVCodecContext *avctx) DVAudioContext *s = avctx->priv_data; int i; - if (avctx->channels > 2) { + if (avctx->channels != 2) { av_log(avctx, AV_LOG_ERROR, "invalid number of channels\n"); return AVERROR(EINVAL); } -- cgit v1.2.3