demux: avi: initialize bool
authorShaleen Jain <shaleen.jain95@gmail.com>
Mon, 24 Jul 2017 07:18:50 +0000 (12:48 +0530)
committerThomas Guillem <thomas@gllm.fr>
Mon, 24 Jul 2017 07:22:41 +0000 (09:22 +0200)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
modules/demux/avi/avi.c

index 238ef8b..34b867d 100644 (file)
@@ -1003,12 +1003,12 @@ static int Demux_Seekable( demux_t *p_demux )
     for( i_track = 0; i_track < p_sys->i_track; i_track++ )
     {
         avi_track_t *tk = p_sys->track[i_track];
-        bool  b;
+        bool  b = false;
 
         es_out_Control( p_demux->out, ES_OUT_GET_ES_STATE, tk->p_es, &b );
         if( tk->p_es_dv_audio )
         {
-            bool b_extra;
+            bool b_extra = false;
             es_out_Control( p_demux->out, ES_OUT_GET_ES_STATE, tk->p_es_dv_audio, &b_extra );
             b |= b_extra;
         }