]> git.sesse.net Git - vlc/commitdiff
Fixed uninitialized value.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 7 Mar 2007 23:35:47 +0000 (23:35 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 7 Mar 2007 23:35:47 +0000 (23:35 +0000)
modules/codec/ffmpeg/audio.c

index 0153a0c741266216cf0ce0a8929a15044abb062d..f4ba0e42232d70b1df9c230af16d73c6f2063f70 100644 (file)
@@ -148,11 +148,9 @@ int E_(InitAudioDec)( decoder_t *p_dec, AVCodecContext *p_context,
     p_sys->p_samples = NULL;
     p_sys->i_samples = 0;
 
+    aout_DateSet( &p_sys->end_date, 0 );
     if( p_dec->fmt_in.audio.i_rate )
-    {
         aout_DateInit( &p_sys->end_date, p_dec->fmt_in.audio.i_rate );
-        aout_DateSet( &p_sys->end_date, 0 );
-    }
 
     /* Set output properties */
     p_dec->fmt_out.i_cat = AUDIO_ES;