From 9e2f0ba61eed4f4f2edc709ed6ecf0a902ba9bf8 Mon Sep 17 00:00:00 2001 From: Adrien Maglo Date: Fri, 7 Jul 2017 14:51:27 +0200 Subject: [PATCH] codec: avcodec: keep the input channel_type Signed-off-by: Thomas Guillem --- 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 a012cac05b..207a936fd0 100644 --- a/modules/codec/avcodec/audio.c +++ b/modules/codec/avcodec/audio.c @@ -575,6 +575,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.channel_type = p_dec->fmt_in.audio.channel_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.4.GIT