summaryrefslogtreecommitdiff
path: root/libavcodec/dca_lbr.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-03-15 10:37:54 -0300
committerJames Almer <jamrial@gmail.com>2022-03-15 10:37:54 -0300
commit739c96ba1a2cebca4194de4c9f914eb0dd514250 (patch)
tree87cdde392f4b9f658eff71efcedd2700d29e24fc /libavcodec/dca_lbr.c
parenta02663d997c1fd7cb8b5456e57cbbcff6632283d (diff)
avcodec/dca_lbr: set nchannels
Fixes warnings about uninitialized values Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/dca_lbr.c')
-rw-r--r--libavcodec/dca_lbr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/dca_lbr.c b/libavcodec/dca_lbr.c
index 68f822ecfa..06c10b96f5 100644
--- a/libavcodec/dca_lbr.c
+++ b/libavcodec/dca_lbr.c
@@ -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;