aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-10-28 18:21:40 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-10-28 18:21:40 +0200
commitad2d597292f41fa2255ffba907fbf3d1c27b8d0d (patch)
treea170b7ac6aa96e5c4978f0f4e3c836e1b059d7ec
parent81cd96caeedc5ab44a92bfd8a1404d9d9a266b22 (diff)
downloadffmpeg-ad2d597292f41fa2255ffba907fbf3d1c27b8d0d.tar.gz
Be less verbose about dca channel number changes.
Only inform the user that the number of channels changed if it was set before.
-rw-r--r--libavcodec/dca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dca.c b/libavcodec/dca.c
index 4c37438f44..ddd2be9fb8 100644
--- a/libavcodec/dca.c
+++ b/libavcodec/dca.c
@@ -1815,7 +1815,7 @@ static int dca_decode_frame(AVCodecContext * avctx,
return -1;
}
- if (avctx->channels != channels) {
+ 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);
avctx->channels = channels;
}