[vlc-commits] NUV: code cosmetics

Jean-Baptiste Kempf git at videolan.org
Sun Jul 29 20:37:46 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Jul 29 12:58:28 2012 +0200| [a102d14745612c20ba2503789d363b133f1f8f31] | committer: Jean-Baptiste Kempf

NUV: code cosmetics

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

 modules/demux/nuv.c |   13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/modules/demux/nuv.c b/modules/demux/nuv.c
index 028e071..6a852b3 100644
--- a/modules/demux/nuv.c
+++ b/modules/demux/nuv.c
@@ -769,8 +769,8 @@ static int SeekTableLoad( demux_t *p_demux, demux_sys_t *p_sys )
     const int32_t i_seek_elements = fh.i_length / 12;
 
     /* Get keyframe adjust offsets */
-    int32_t i_kfa_elements;
-    uint8_t *p_kfa_table;
+    int32_t i_kfa_elements = 0;
+    uint8_t *p_kfa_table = NULL;
 
     if( p_sys->exh.i_keyframe_adjust_offset > 0 )
     {
@@ -806,16 +806,7 @@ static int SeekTableLoad( demux_t *p_demux, demux_sys_t *p_sys )
 
             i_kfa_elements = fh.i_length / 8;
         }
-        else
-        {
-            i_kfa_elements = 0;
-        }
     }
-    else
-    {
-        i_kfa_elements = 0;
-    }
-
 
     if( i_kfa_elements > 0 )
         msg_Warn( p_demux, "untested keyframe adjust support, upload samples" );



More information about the vlc-commits mailing list