[vlc-commits] demux: libavi: remove useless member

Francois Cartegnie git at videolan.org
Wed Nov 22 11:27:58 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Nov 22 11:26:55 2017 +0100| [713e1e6e587278f18ca6163b49a439b98ddaf0e2] | committer: Francois Cartegnie

demux: libavi: remove useless member

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

 modules/demux/avi/libavi.c | 5 -----
 modules/demux/avi/libavi.h | 3 +--
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/modules/demux/avi/libavi.c b/modules/demux/avi/libavi.c
index c823d30326..07328829e2 100644
--- a/modules/demux/avi/libavi.c
+++ b/modules/demux/avi/libavi.c
@@ -204,7 +204,6 @@ static int AVI_ChunkRead_list( stream_t *s, avi_chunk_t *p_container )
         *pp_append = p_chk;
         while( *pp_append )
             pp_append = &((*pp_append)->common.p_next);
-        p_container->common.p_last = p_chk;
 
         if( p_container->common.i_chunk_size > 0 &&
             vlc_stream_Tell( s ) >= AVI_ChunkEnd( p_container ) )
@@ -264,7 +263,6 @@ int AVI_ChunkFetchIndexes( stream_t *s, avi_chunk_t *p_riff )
         *pp_append = p_chk;
         while( *pp_append )
             pp_append = &((*pp_append)->common.p_next);
-        p_riff->common.p_last = p_chk;
 
         if( p_chk->common.p_father->common.i_chunk_size > 0 &&
            ( vlc_stream_Tell( s ) >
@@ -1055,7 +1053,6 @@ void AVI_ChunkClean( stream_t *s,
                 (char*)&p_chk->common.i_chunk_fourcc );
     }
     p_chk->common.p_first = NULL;
-    p_chk->common.p_last  = NULL;
 
     return;
 }
@@ -1118,7 +1115,6 @@ int AVI_ChunkReadRoot( stream_t *s, avi_chunk_t *p_root )
     p_list->p_father = NULL;
     p_list->p_next  = NULL;
     p_list->p_first = NULL;
-    p_list->p_last  = NULL;
 
     p_list->i_type = VLC_FOURCC( 'r', 'o', 'o', 't' );
 
@@ -1145,7 +1141,6 @@ int AVI_ChunkReadRoot( stream_t *s, avi_chunk_t *p_root )
         *pp_append = p_chk;
         while( *pp_append )
             pp_append = &((*pp_append)->common.p_next);
-        p_root->common.p_last = p_chk;
 
         /* If we can't seek then stop when we 've found first RIFF-AVI */
         if( p_chk->common.i_chunk_fourcc == AVIFOURCC_RIFF &&
diff --git a/modules/demux/avi/libavi.h b/modules/demux/avi/libavi.h
index 5fda4435ef..1a686f0bfe 100644
--- a/modules/demux/avi/libavi.h
+++ b/modules/demux/avi/libavi.h
@@ -44,8 +44,7 @@
     uint64_t i_chunk_pos;          \
     union  avi_chunk_u *p_next;    \
     union  avi_chunk_u *p_father;  \
-    union  avi_chunk_u *p_first;   \
-    union  avi_chunk_u *p_last;
+    union  avi_chunk_u *p_first;
 
 #define AVI_CHUNK( p_chk ) (avi_chunk_t*)(p_chk)
 



More information about the vlc-commits mailing list