Commit ee24078f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Wav: Reject invalid files leading to FPE

parent 2dd0fa30
......@@ -349,6 +349,10 @@ static int Open( vlc_object_t * p_this )
p_sys->fmt.i_codec =
vlc_fourcc_GetCodecAudio( p_sys->fmt.i_codec,
p_sys->fmt.audio.i_bitspersample );
if( p_sys->fmt.i_codec == 0 ) {
msg_Err( p_demux, "Unrecognized codec" );
goto error;
}
break;
case VLC_CODEC_ADPCM_MS:
/* FIXME not sure at all FIXME */
......
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