sdi: no channels magic numbers
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 8 Mar 2012 19:15:27 +0000 (21:15 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 8 Mar 2012 19:15:27 +0000 (21:15 +0200)
modules/access/linsys/linsys_sdi.c

index 3b6f9c1..9f8388e 100644 (file)
@@ -847,8 +847,8 @@ static int InitAudio( demux_t *p_demux, sdi_audio_t *p_audio )
     es_format_Init( &fmt, AUDIO_ES, VLC_CODEC_S16L );
     fmt.i_id = p_audio->i_id;
     fmt.audio.i_channels          = 2;
-    fmt.audio.i_physical_channels = 6;
-    fmt.audio.i_original_channels = 6;
+    fmt.audio.i_original_channels =
+    fmt.audio.i_physical_channels = AOUT_CHANS_STEREO;
     fmt.audio.i_rate              = p_audio->i_rate;
     fmt.audio.i_bitspersample     = 16;
     fmt.audio.i_blockalign        = fmt.audio.i_channels *