[vlc-commits] avi: remove dead code

Rémi Denis-Courmont git at videolan.org
Tue Apr 26 22:14:21 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr 26 23:02:43 2016 +0300| [7ff1b068927d8aeebf43672a4bf8118346e2c275] | committer: Rémi Denis-Courmont

avi: remove dead code

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

 modules/demux/avi/avi.c |   24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 70ba6fa..64ad533 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -223,7 +223,6 @@ static int   AVI_GetKeyFlag    ( vlc_fourcc_t , uint8_t * );
 
 static int AVI_PacketGetHeader( demux_t *, avi_packet_t *p_pk );
 static int AVI_PacketNext     ( demux_t * );
-static int AVI_PacketRead     ( demux_t *, avi_packet_t *, block_t **);
 static int AVI_PacketSearch   ( demux_t * );
 
 static void AVI_IndexLoad    ( demux_t * );
@@ -2221,29 +2220,6 @@ static int AVI_PacketNext( demux_t *p_demux )
     return VLC_SUCCESS;
 }
 
-static int AVI_PacketRead( demux_t   *p_demux,
-                           avi_packet_t     *p_pk,
-                           block_t          **pp_frame )
-{
-    size_t i_size;
-
-    i_size = __EVEN( p_pk->i_size + 8 );
-
-    if( ( *pp_frame = stream_Block( p_demux->s, i_size ) ) == NULL )
-    {
-        return VLC_EGENERIC;
-    }
-    (*pp_frame)->p_buffer += 8;
-    (*pp_frame)->i_buffer -= 8;
-
-    if( i_size != p_pk->i_size + 8 )
-    {
-        (*pp_frame)->i_buffer--;
-    }
-
-    return VLC_SUCCESS;
-}
-
 static int AVI_PacketSearch( demux_t *p_demux )
 {
     demux_sys_t     *p_sys = p_demux->p_sys;



More information about the vlc-commits mailing list