[FFmpeg-cvslog] Be less verbose about dca channel number changes.

Carl Eugen Hoyos git at videolan.org
Fri Oct 28 18:23:24 CEST 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Oct 28 18:21:40 2011 +0200| [ad2d597292f41fa2255ffba907fbf3d1c27b8d0d] | committer: Carl Eugen Hoyos

Be less verbose about dca channel number changes.

Only inform the user that the number of channels changed if it was set
before.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ad2d597292f41fa2255ffba907fbf3d1c27b8d0d
---

 libavcodec/dca.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/dca.c b/libavcodec/dca.c
index 4c37438..ddd2be9 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;
     }



More information about the ffmpeg-cvslog mailing list