[vlc-commits] demux: avi: remove double chunk lookup

Francois Cartegnie git at videolan.org
Mon Nov 10 21:49:13 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Nov 10 16:05:46 2014 +0100| [67d3368b4b7bf023128ee6d0bb4f09a2e762d337] | committer: Francois Cartegnie

demux: avi: remove double chunk lookup

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=67d3368b4b7bf023128ee6d0bb4f09a2e762d337
---

 modules/demux/avi/avi.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 53f3590..ef783d9 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -395,9 +395,9 @@ static int Open( vlc_object_t * p_this )
         tk->b_activated = true;
 
         p_vids = (avi_chunk_strf_vids_t*)AVI_ChunkFind( p_strl, AVIFOURCC_strf, 0 );
-        p_auds = (avi_chunk_strf_auds_t*)AVI_ChunkFind( p_strl, AVIFOURCC_strf, 0 );
+        p_auds = (avi_chunk_strf_auds_t*)p_vids;
 
-        if( p_strl == NULL || p_strh == NULL || p_auds == NULL || p_vids == NULL )
+        if( p_strl == NULL || p_strh == NULL || p_vids == NULL )
         {
             msg_Warn( p_demux, "stream[%d] incomplete", i );
             free( tk );



More information about the vlc-commits mailing list