[vlc-commits] demux: ogg: missing initializers

Francois Cartegnie git at videolan.org
Fri Oct 25 06:20:52 CEST 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Oct 25 13:16:58 2013 +0900| [df55c07ea859847bd4abc13a46c55fd9e2d211b7] | committer: Francois Cartegnie

demux: ogg: missing initializers

Oops

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

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

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 9f1893c..ccfcfb5 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -243,7 +243,7 @@ static int Demux( demux_t * p_demux )
     bool b_canseek;
 
     int i_active_streams = p_sys->i_streams;
-    for ( int i; i < p_sys->i_streams; i++ )
+    for ( int i=0; i < p_sys->i_streams; i++ )
     {
         if ( p_sys->pp_stream[i]->b_finished )
             i_active_streams--;
@@ -1323,7 +1323,7 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
 {
     demux_sys_t *p_ogg = p_demux->p_sys  ;
     ogg_packet oggpacket;
-    int i_stream;
+    int i_stream = 0;
 
     p_ogg->i_total_length = stream_Size ( p_demux->s );
     msg_Dbg( p_demux, "File length is %"PRId64" bytes", p_ogg->i_total_length );



More information about the vlc-commits mailing list