avcodec/dvaudiodec: only stereo makes sense

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2016-01-26 23:33:55 +01:00
parent e9e623369d
commit 11bc4fd653
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}