diff options
author | Anton Khirnov <anton@khirnov.net> | 2019-05-29 08:13:23 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:41 -0300 |
commit | b2af4bc807cfc62d61213c6050aac26ec8a1e675 (patch) | |
tree | 88e8e19480ac99f1dfcf2a618421a0bc2eef725a /libavcodec/dca_xll.c | |
parent | fa0c8a753e4851cfabf08fb558b0ca2616f27bbc (diff) | |
download | ffmpeg-b2af4bc807cfc62d61213c6050aac26ec8a1e675.tar.gz |
dca: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/dca_xll.c')
-rw-r--r-- | libavcodec/dca_xll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dca_xll.c b/libavcodec/dca_xll.c index 316045b588..aaccb7a43d 100644 --- a/libavcodec/dca_xll.c +++ b/libavcodec/dca_xll.c @@ -1443,7 +1443,7 @@ int ff_dca_xll_filter_frame(DCAXllDecoder *s, AVFrame *frame) s->output_mask); } - for (i = 0; i < avctx->channels; i++) { + for (i = 0; i < avctx->ch_layout.nb_channels; i++) { int32_t *samples = s->output_samples[ch_remap[i]]; if (frame->format == AV_SAMPLE_FMT_S16P) { int16_t *plane = (int16_t *)frame->extended_data[i]; |