Files
FFmpeg/doc
Jun Zhao 68e18d3a1c doc/examples/encode_audio: fix hardcoded stereo sample stride
The sample generation loop hardcodes a stride of 2 (stereo) with
samples[2*j], but the channel count is dynamically selected by
select_channel_layout() which picks the layout with the highest
channel count. If the encoder supports more than 2 channels,
samples will be written at wrong offsets.

Use c->ch_layout.nb_channels as the stride instead.

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2026-03-18 02:08:09 +00:00
..
2023-03-01 21:59:10 +01:00
2026-01-18 03:33:04 +00:00
2025-08-03 13:48:47 +02:00
2025-10-25 13:21:50 +00:00
2024-03-18 17:59:19 +01:00
2025-08-03 13:48:47 +02:00
2026-01-18 03:33:04 +00:00
2025-08-03 13:48:47 +02:00
2021-06-18 18:58:25 +02:00