Commit 11bc4fd6 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/dvaudiodec: only stereo makes sense

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent e9e62336
...@@ -34,7 +34,7 @@ static av_cold int decode_init(AVCodecContext *avctx) ...@@ -34,7 +34,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
DVAudioContext *s = avctx->priv_data; DVAudioContext *s = avctx->priv_data;
int i; int i;
if (avctx->channels > 2) { if (avctx->channels != 2) {
av_log(avctx, AV_LOG_ERROR, "invalid number of channels\n"); av_log(avctx, AV_LOG_ERROR, "invalid number of channels\n");
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment