Commit 50c43317 authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: avi: workaround broken RIFF header values

parent 7c11bcf2
......@@ -89,6 +89,11 @@ static int AVI_ChunkReadCommon( stream_t *s, avi_chunk_t *p_chk,
{
msg_Warn( s, "chunk %4.4s does not fit into parent %ld",
(char*)&p_chk->common.i_chunk_fourcc, AVI_ChunkEnd( p_father ) );
/* How hard is to produce files with the correct declared size ? */
if( p_father->common.i_chunk_fourcc != AVIFOURCC_RIFF ||
p_father->common.p_father == NULL ||
p_father->common.p_father->common.p_father != NULL ) /* Root > RIFF only */
return VLC_EGENERIC;
}
......
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