]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/dvaudiodec: only stereo makes sense
authorPaul B Mahol <onemda@gmail.com>
Tue, 26 Jan 2016 22:33:55 +0000 (23:33 +0100)
committerPaul B Mahol <onemda@gmail.com>
Tue, 26 Jan 2016 22:33:55 +0000 (23:33 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/dvaudiodec.c

index 84db509c9aae0910556f5f04eafc15bf21c5802d..1df3edfd628703aaae9ad9875c17ce9b19452bf6 100644 (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);
     }