Commit b62d7ff5 authored by Laurent Aimar's avatar Laurent Aimar

Fixed potential division by 0 with corrupted real file and VLC_CODEC_RA_288.

parent edd1cb88
......@@ -1536,6 +1536,11 @@ static int CodecAudioParse( demux_t *p_demux, int i_tk_id, const uint8_t *p_data
break;
case VLC_FOURCC('2','8','_','8'):
if( i_coded_frame_size <= 0 )
{
es_format_Clean( &fmt );
return VLC_EGENERIC;
}
fmt.i_codec = VLC_CODEC_RA_288;
fmt.audio.i_blockalign = i_coded_frame_size;
break;
......
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