aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-10-28 19:13:59 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-10-28 19:13:59 +0200
commit246c8dac3e12887ec90c6eae29bf26aee6dc6ac0 (patch)
treed635a0cb2293772d2707dab0fe8e6f1037c35b22
parentad2d597292f41fa2255ffba907fbf3d1c27b8d0d (diff)
downloadffmpeg-246c8dac3e12887ec90c6eae29bf26aee6dc6ac0.tar.gz
Fix dca decoding for many samples after last commit.
Still be less verbose about channel count change from 0 channels.
-rw-r--r--libavcodec/dca.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/dca.c b/libavcodec/dca.c
index ddd2be9fb8..5cf5b2629a 100644
--- a/libavcodec/dca.c
+++ b/libavcodec/dca.c
@@ -1815,8 +1815,9 @@ static int dca_decode_frame(AVCodecContext * avctx,
return -1;
}
- if (avctx->channels && avctx->channels != channels) {
- av_log(avctx, AV_LOG_INFO, "Number of channels changed in DCA decoder (%d -> %d)\n", avctx->channels, channels);
+ if (avctx->channels != channels) {
+ if (avctx->channels)
+ av_log(avctx, AV_LOG_INFO, "Number of channels changed in DCA decoder (%d -> %d)\n", avctx->channels, channels);
avctx->channels = channels;
}