From ad2d597292f41fa2255ffba907fbf3d1c27b8d0d Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Fri, 28 Oct 2011 18:21:40 +0200 Subject: [PATCH] Be less verbose about dca channel number changes. Only inform the user that the number of channels changed if it was set before. --- libavcodec/dca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }