Commit bed28046 authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Paul Saman

Accept only AAC and mp3 audio decoding on the DaVinci DSP

Signed-off-by: Jean-Paul Saman's avatarJean-Paul Saman <jean-paul.saman@m2x.nl>
parent 0175a1e6
......@@ -79,6 +79,17 @@ int OpenAudioDecoder( vlc_object_t *p_this )
char *psz_engine = NULL;
AUDDEC_Params params;
switch( p_dec->fmt_in.i_codec )
{
case VLC_FOURCC('m','p','4','a'):
case VLC_FOURCC('m','p','g','a'):
break;
default:
msg_Dbg( p_dec, "Unsupported codec : %4.4s",(char*)&p_dec->fmt_in.i_codec );
return VLC_EGENERIC;
}
psz_codec = config_GetPsz( p_this, "davinci-auddec-codec" );
if( psz_codec && !*psz_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