1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avcodec/dca_lbr: set nchannels

Fixes warnings about uninitialized values

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2022-03-15 10:37:54 -03:00
parent a02663d997
commit 739c96ba1a

View File

@ -1730,6 +1730,7 @@ int ff_dca_lbr_filter_frame(DCALbrDecoder *s, AVFrame *frame)
const int8_t *reorder;
uint64_t channel_mask = channel_layouts[ch_conf];
nchannels = av_popcount64(channel_mask);
avctx->sample_rate = s->sample_rate;
avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
avctx->bits_per_raw_sample = 0;