Commit a81b46ea authored by Laurent Aimar's avatar Laurent Aimar

Fixed uninitialized value.

parent 6a46d6cc
...@@ -148,11 +148,9 @@ int E_(InitAudioDec)( decoder_t *p_dec, AVCodecContext *p_context, ...@@ -148,11 +148,9 @@ int E_(InitAudioDec)( decoder_t *p_dec, AVCodecContext *p_context,
p_sys->p_samples = NULL; p_sys->p_samples = NULL;
p_sys->i_samples = 0; p_sys->i_samples = 0;
aout_DateSet( &p_sys->end_date, 0 );
if( p_dec->fmt_in.audio.i_rate ) if( p_dec->fmt_in.audio.i_rate )
{
aout_DateInit( &p_sys->end_date, 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 */ /* Set output properties */
p_dec->fmt_out.i_cat = AUDIO_ES; p_dec->fmt_out.i_cat = AUDIO_ES;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment