[vlc-commits] codec: avcodec: keep the input channel_type

Adrien Maglo git at videolan.org
Wed Jul 19 18:59:42 CEST 2017


vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Fri Jul  7 14:51:27 2017 +0200| [9e2f0ba61eed4f4f2edc709ed6ecf0a902ba9bf8] | committer: Thomas Guillem

codec: avcodec: keep the input channel_type

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e2f0ba61eed4f4f2edc709ed6ecf0a902ba9bf8
---

 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;
 



More information about the vlc-commits mailing list