Commit 5b227602 authored by Ilkka Ollakka's avatar Ilkka Ollakka

transcode: handle acodec aliases properly

Get correct fourcc for i_acodec instead creating fourcc directly from
user input.

Fixes #9755
parent 4e6c9e08
......@@ -282,9 +282,10 @@ static int Open( vlc_object_t *p_this )
p_sys->i_acodec = 0;
if( psz_string && *psz_string )
{
char fcc[4] = " ";
char fcc[5] = " \0";
memcpy( fcc, psz_string, __MIN( strlen( psz_string ), 4 ) );
p_sys->i_acodec = VLC_FOURCC( fcc[0], fcc[1], fcc[2], fcc[3] );
p_sys->i_acodec = vlc_fourcc_GetCodecFromString( AUDIO_ES, fcc );
msg_Dbg( p_stream, "Checking codec mapping for %s got %4.4s ", fcc, (char*)&p_sys->i_acodec);
}
free( psz_string );
......
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