Commit b893d15b authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/mpeg_audio.c: fixed segfault

parent 99506d97
...@@ -147,6 +147,7 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -147,6 +147,7 @@ static int OpenDecoder( vlc_object_t *p_this )
/* Set output properties */ /* Set output properties */
p_dec->fmt_out.i_cat = AUDIO_ES; p_dec->fmt_out.i_cat = AUDIO_ES;
p_dec->fmt_out.i_codec = VLC_FOURCC('m','p','g','a'); p_dec->fmt_out.i_codec = VLC_FOURCC('m','p','g','a');
p_dec->fmt_out.audio.i_rate = 0; /* So end_date gets initialized */
/* Set callback */ /* Set callback */
p_dec->pf_decode_audio = (aout_buffer_t *(*)(decoder_t *, block_t **)) p_dec->pf_decode_audio = (aout_buffer_t *(*)(decoder_t *, block_t **))
......
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