[vlc-devel] [PATCH 07/16] codec: avcodec: keep the input channel_type
Thomas Guillem
thomas at gllm.fr
Fri Jul 7 16:02:53 CEST 2017
From: Adrien Maglo <magsoft at videolan.org>
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
---
modules/codec/avcodec/audio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index 6f77e86f0a..bffbbb17f9 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -574,6 +574,7 @@ static void SetupOutputFormat( decoder_t *p_dec, bool b_trust )
decoder_sys_t *p_sys = p_dec->p_sys;
p_dec->fmt_out.i_codec = GetVlcAudioFormat( p_sys->p_context->sample_fmt );
+ p_dec->fmt_out.audio.channels_type = p_dec->fmt_in.audio.channels_type;
p_dec->fmt_out.audio.i_format = p_dec->fmt_out.i_codec;
p_dec->fmt_out.audio.i_rate = p_sys->p_context->sample_rate;
--
2.11.0
More information about the vlc-devel
mailing list