Fix dca decoding for many samples after last commit.
Still be less verbose about channel count change from 0 channels.
This commit is contained in:
parent
ad2d597292
commit
246c8dac3e
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue