[vlc-commits] packetizer: mpeg4video: fix unused vars warnings

Francois Cartegnie git at videolan.org
Wed Oct 26 19:11:29 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 26 19:10:42 2016 +0200| [89ca03b5abea6c4ac35de327f73b4c3b83db6f90] | committer: Francois Cartegnie

packetizer: mpeg4video: fix unused vars warnings

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

 modules/packetizer/mpeg4video.c | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/modules/packetizer/mpeg4video.c b/modules/packetizer/mpeg4video.c
index bf8b864..eb00522 100644
--- a/modules/packetizer/mpeg4video.c
+++ b/modules/packetizer/mpeg4video.c
@@ -355,7 +355,7 @@ static int ParseVOL( decoder_t *p_dec, es_format_t *fmt,
                      uint8_t *p_vol, int i_vol )
 {
     decoder_sys_t *p_sys = p_dec->p_sys;
-    int i_vo_type, i_vo_ver_id, i_ar, i_shape;
+    int i_vo_ver_id, i_ar, i_shape;
     bs_t s;
 
     for( ;; )
@@ -370,7 +370,7 @@ static int ParseVOL( decoder_t *p_dec, es_format_t *fmt,
     bs_init( &s, &p_vol[4], i_vol - 4 );
 
     bs_skip( &s, 1 );   /* random access */
-    i_vo_type = bs_read( &s, 8 );
+    bs_skip( &s, 8 );   /* vo_type */
     if( bs_read1( &s ) )
     {
         i_vo_ver_id = bs_read( &s, 4 );
@@ -383,19 +383,14 @@ static int ParseVOL( decoder_t *p_dec, es_format_t *fmt,
     i_ar = bs_read( &s, 4 );
     if( i_ar == 0xf )
     {
-        int i_ar_width, i_ar_height;
-
-        i_ar_width = bs_read( &s, 8 );
-        i_ar_height= bs_read( &s, 8 );
+        bs_skip( &s, 8 );  /* ar_width */
+        bs_skip( &s, 8 );  /* ar_height */
     }
     if( bs_read1( &s ) )
     {
-        int i_chroma_format;
-        int i_low_delay;
-
         /* vol control parameter */
-        i_chroma_format = bs_read( &s, 2 );
-        i_low_delay = bs_read1( &s );
+        bs_skip( &s, 2 ); /* chroma_format */
+        bs_read1( &s ); /* low_delay */
 
         if( bs_read1( &s ) )
         {



More information about the vlc-commits mailing list