Fixed uninitialized member fields for audio filter2.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 10 Jun 2007 19:12:54 +0000 (19:12 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 10 Jun 2007 19:12:54 +0000 (19:12 +0000)
modules/audio_filter/converter/mpgatofixed32.c

index f0c3376..c4386e3 100644 (file)
@@ -318,6 +318,7 @@ static int OpenFilter( vlc_object_t *p_this )
         msg_Err( p_filter, "out of memory" );
         return -1;
     }
+    p_sys->i_reject_count = 0;
 
     p_filter->pf_audio_filter = Convert;
 
@@ -394,6 +395,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
     aout_filter.output.i_format = p_filter->fmt_out.i_codec;
 
     in_buf.p_buffer = p_block->p_buffer;
+    in_buf.b_discontinuity = VLC_FALSE;
     in_buf.i_nb_bytes = p_block->i_buffer;
     in_buf.i_nb_samples = p_block->i_samples;
     out_buf.p_buffer = p_out->p_buffer;