[FFmpeg-cvslog] avcodec/dca_lbr: set nchannels
James Almer
git at videolan.org
Tue Mar 15 15:38:27 EET 2022
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Mar 15 10:37:54 2022 -0300| [739c96ba1a2cebca4194de4c9f914eb0dd514250] | committer: James Almer
avcodec/dca_lbr: set nchannels
Fixes warnings about uninitialized values
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=739c96ba1a2cebca4194de4c9f914eb0dd514250
---
libavcodec/dca_lbr.c | 1 +
1 file changed, 1 insertion(+)
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;
More information about the ffmpeg-cvslog
mailing list