aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/demuxing_decoding.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-01-20 17:47:51 -0300
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:47 -0300
commitf5ef91e02080316f50d606f5b0b03333bb627ed7 (patch)
treed6338f72a9ee59dfbf29024ae5d5a5aa29d81ce9 /doc/examples/demuxing_decoding.c
parent50e9e11316064ecdee889b18a0b6681a248edcf4 (diff)
downloadffmpeg-f5ef91e02080316f50d606f5b0b03333bb627ed7.tar.gz
doc/examples: convert to new channel layout-API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'doc/examples/demuxing_decoding.c')
-rw-r--r--doc/examples/demuxing_decoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/demuxing_decoding.c b/doc/examples/demuxing_decoding.c
index 8520d5b660..999a78db0d 100644
--- a/doc/examples/demuxing_decoding.c
+++ b/doc/examples/demuxing_decoding.c
@@ -345,7 +345,7 @@ int main (int argc, char **argv)
if (audio_stream) {
enum AVSampleFormat sfmt = audio_dec_ctx->sample_fmt;
- int n_channels = audio_dec_ctx->channels;
+ int n_channels = audio_dec_ctx->ch_layout.nb_channels;
const char *fmt;
if (av_sample_fmt_is_planar(sfmt)) {