[vlc-devel] [PATCH] transcode: encoder: fix audio fmt initialization
Tristan Matthews
tmatth at videolan.org
Tue Feb 23 00:00:19 UTC 2021
Sorry for the noise, it turns out the problem was even earlier.
Fixes #25477
---
modules/stream_out/transcode/encoder/audio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/stream_out/transcode/encoder/audio.c b/modules/stream_out/transcode/encoder/audio.c
index 2aa0c78859..841291b4bf 100644
--- a/modules/stream_out/transcode/encoder/audio.c
+++ b/modules/stream_out/transcode/encoder/audio.c
@@ -186,6 +186,8 @@ int transcode_encoder_audio_test( encoder_t *p_encoder,
p_encoder->fmt_in.audio.i_format = p_encoder->fmt_in.i_codec;
+ aout_FormatPrepare(&p_encoder->fmt_in.audio);
+
/* copy our requested format */
es_format_Copy( p_enc_wanted_in, &p_encoder->fmt_in );
--
2.25.1
More information about the vlc-devel
mailing list