[vlc-commits] demux: avi: really fix chunk type check
Francois Cartegnie
git at videolan.org
Wed Nov 22 12:02:47 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Nov 22 12:01:36 2017 +0100| [eb46af662809b554ba8beb16ea5401535b2cdbd4] | committer: Francois Cartegnie
demux: avi: really fix chunk type check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eb46af662809b554ba8beb16ea5401535b2cdbd4
---
modules/demux/avi/libavi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/avi/libavi.c b/modules/demux/avi/libavi.c
index 07328829e2..057fb84fa2 100644
--- a/modules/demux/avi/libavi.c
+++ b/modules/demux/avi/libavi.c
@@ -1176,7 +1176,7 @@ int AVI_ChunkCount_( avi_chunk_t *p_chk, vlc_fourcc_t i_fourcc, bool b_list )
continue;
if( p_child->common.i_chunk_fourcc != i_fourcc &&
- p_child->list.i_type != i_fourcc )
+ (!b_list || p_child->list.i_type != i_fourcc) )
continue;
i_count++;
@@ -1198,7 +1198,7 @@ void *AVI_ChunkFind_( avi_chunk_t *p_chk,
continue;
if( p_child->common.i_chunk_fourcc != i_fourcc &&
- p_child->list.i_type != i_fourcc )
+ (!b_list || p_child->list.i_type != i_fourcc) )
continue;
if( i_number-- == 0 )
More information about the vlc-commits
mailing list