codec: faad: keep the input channel_type
authorAdrien Maglo <magsoft@videolan.org>
Fri, 7 Jul 2017 12:51:16 +0000 (14:51 +0200)
committerThomas Guillem <thomas@gllm.fr>
Wed, 19 Jul 2017 16:46:06 +0000 (18:46 +0200)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
modules/codec/faad.c

index 8528f8c..1711ab4 100644 (file)
@@ -130,6 +130,8 @@ static int Open( vlc_object_t *p_this )
     /* Misc init */
     date_Set( &p_sys->date, 0 );
 
+    p_dec->fmt_out.audio.channel_type = p_dec->fmt_in.audio.channel_type;
+
     if( p_dec->fmt_in.i_extra > 0 )
     {
         /* We have a decoder config so init the handle */