[vlc-commits] hdsdi: no magic numbers for channels

Rémi Denis-Courmont git at videolan.org
Thu Mar 8 20:14:31 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Mar  8 21:13:44 2012 +0200| [f24825edb4c7c3b4605bba07aea9d13dd6aad06a] | committer: Rémi Denis-Courmont

hdsdi: no magic numbers for channels

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

 modules/access/linsys/linsys_hdsdi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/linsys/linsys_hdsdi.c b/modules/access/linsys/linsys_hdsdi.c
index 2e19408..14c6b73 100644
--- a/modules/access/linsys/linsys_hdsdi.c
+++ b/modules/access/linsys/linsys_hdsdi.c
@@ -518,8 +518,8 @@ static int InitAudio( demux_t *p_demux )
         es_format_Init( &fmt, AUDIO_ES, VLC_FOURCC('a','r','a','w') );
         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_sys->i_sample_rate;
         fmt.audio.i_bitspersample     = 16;
         fmt.audio.i_blockalign = fmt.audio.i_channels *



More information about the vlc-commits mailing list