Commit 43e43fa5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Minor cleanup

parent 101bafe4
...@@ -107,10 +107,9 @@ static int Open( vlc_object_t * p_this ) ...@@ -107,10 +107,9 @@ static int Open( vlc_object_t * p_this )
/* skip XA header -- cannot fail */ /* skip XA header -- cannot fail */
stream_Read( p_demux->s, NULL, sizeof( p_xa ) ); stream_Read( p_demux->s, NULL, sizeof( p_xa ) );
es_format_Init( &p_sys->fmt, AUDIO_ES, 0 ); es_format_Init( &p_sys->fmt, AUDIO_ES, VLC_FOURCC('X','A','J',0) );
msg_Dbg( p_demux, "assuming EA ADPCM audio format" ); msg_Dbg( p_demux, "assuming EA ADPCM audio codec" );
p_sys->fmt.i_codec = VLC_FOURCC('X','A','J',0);
p_sys->fmt.audio.i_rate = GetDWLE( &p_xa.nSamplesPerSec ); p_sys->fmt.audio.i_rate = GetDWLE( &p_xa.nSamplesPerSec );
p_sys->fmt.audio.i_bytes_per_frame = 15 * GetWLE( &p_xa.nChannels ); p_sys->fmt.audio.i_bytes_per_frame = 15 * GetWLE( &p_xa.nChannels );
p_sys->fmt.audio.i_frame_length = 28; /* 28 samples of 4 bits each */ p_sys->fmt.audio.i_frame_length = 28; /* 28 samples of 4 bits each */
......
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