Commit 2b2e2df7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

sdi: no channels magic numbers

parent f24825ed
...@@ -847,8 +847,8 @@ static int InitAudio( demux_t *p_demux, sdi_audio_t *p_audio ) ...@@ -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 ); es_format_Init( &fmt, AUDIO_ES, VLC_CODEC_S16L );
fmt.i_id = p_audio->i_id; fmt.i_id = p_audio->i_id;
fmt.audio.i_channels = 2; fmt.audio.i_channels = 2;
fmt.audio.i_physical_channels = 6; fmt.audio.i_original_channels =
fmt.audio.i_original_channels = 6; fmt.audio.i_physical_channels = AOUT_CHANS_STEREO;
fmt.audio.i_rate = p_audio->i_rate; fmt.audio.i_rate = p_audio->i_rate;
fmt.audio.i_bitspersample = 16; fmt.audio.i_bitspersample = 16;
fmt.audio.i_blockalign = fmt.audio.i_channels * fmt.audio.i_blockalign = fmt.audio.i_channels *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment