[vlc-commits] demux: avi: skip empty strf
Francois Cartegnie
git at videolan.org
Thu Jul 20 18:52:35 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jul 20 17:32:01 2017 +0200| [72b8e49a717e7902c96c24bf2666c248276bd208] | committer: Francois Cartegnie
demux: avi: skip empty strf
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72b8e49a717e7902c96c24bf2666c248276bd208
---
modules/demux/avi/libavi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/avi/libavi.c b/modules/demux/avi/libavi.c
index 6c50d54bcd..c42c06a59f 100644
--- a/modules/demux/avi/libavi.c
+++ b/modules/demux/avi/libavi.c
@@ -390,7 +390,7 @@ static int AVI_ChunkRead_strf( stream_t *s, avi_chunk_t *p_chk )
if( !( p_strh = AVI_ChunkFind( p_chk->common.p_father, AVIFOURCC_strh, 0 ) ) )
{
msg_Err( (vlc_object_t*)s, "malformed avi file" );
- AVI_READCHUNK_EXIT( VLC_EGENERIC );
+ AVI_READCHUNK_EXIT( p_chk->common.i_chunk_size > 0 ? VLC_EGENERIC : AVI_ZEROSIZED_CHUNK );
}
switch( p_strh->strh.i_type )
More information about the vlc-commits
mailing list