Commit 721e4cfc authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

AVI: fix playback of files where movi chunk is outside of RIFF

This is notably the case with Nikon-Camera generated movies
parent b0e2be1e
......@@ -329,6 +329,8 @@ static int Open( vlc_object_t * p_this )
p_riff = AVI_ChunkFind( &p_sys->ck_root, AVIFOURCC_RIFF, 0 );
p_hdrl = AVI_ChunkFind( p_riff, AVIFOURCC_hdrl, 0 );
p_movi = AVI_ChunkFind( p_riff, AVIFOURCC_movi, 0 );
if( !p_movi )
p_movi = AVI_ChunkFind( &p_sys->ck_root, AVIFOURCC_movi, 0 );
if( !p_hdrl || !p_movi )
{
......
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