Commit 0acb0141 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

rawaud: initialize the ES directly with the known codec

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 78cfbb8d
......@@ -110,10 +110,9 @@ static int Open( vlc_object_t * p_this )
if( !p_sys )
return VLC_ENOMEM;
es_format_Init( &p_sys->fmt, AUDIO_ES, 0 );
char *psz_fourcc = var_CreateGetString( p_demux, "rawaud-fourcc" );
p_sys->fmt.i_codec = vlc_fourcc_GetCodecFromString( AUDIO_ES, psz_fourcc );
es_format_Init( &p_sys->fmt, AUDIO_ES,
vlc_fourcc_GetCodecFromString( AUDIO_ES, psz_fourcc ) );
free( psz_fourcc );
if( !p_sys->fmt.i_codec )
......
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