Commit ad2d5972 authored by Carl Eugen Hoyos's avatar 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.
parent 81cd96ca
...@@ -1815,7 +1815,7 @@ static int dca_decode_frame(AVCodecContext * avctx, ...@@ -1815,7 +1815,7 @@ static int dca_decode_frame(AVCodecContext * avctx,
return -1; 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); av_log(avctx, AV_LOG_INFO, "Number of channels changed in DCA decoder (%d -> %d)\n", avctx->channels, channels);
avctx->channels = channels; avctx->channels = channels;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment