aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-01-26 23:33:55 +0100
committerPaul B Mahol <onemda@gmail.com>2016-01-26 23:33:55 +0100
commit11bc4fd653fab05a9e24f7aca22c913ffb238b5a (patch)
tree3a39b0bbbf641fb315c2d5d2897b71d1f0770411 /libavcodec
parente9e623369d7ba330ab8157157e956cb71d8058b5 (diff)
downloadffmpeg-11bc4fd653fab05a9e24f7aca22c913ffb238b5a.tar.gz
avcodec/dvaudiodec: only stereo makes sense
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dvaudiodec.c2
1 files changed, 1 insertions, 1 deletions
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);
}