Commit 208eb5c8 authored by Thomas Guillem's avatar Thomas Guillem

mepg_audio: fix p_sys not initialized

parent ad91f15f
......@@ -140,12 +140,19 @@ static int Open( vlc_object_t *p_this )
/* Misc init */
#ifdef HAVE_MPGA_FILTER
p_sys->b_packetizer = true;
#else
p_sys->b_packetizer = false;
#endif
p_sys->i_state = STATE_NOSYNC;
date_Set( &p_sys->end_date, 0 );
block_BytestreamInit( &p_sys->bytestream );
p_sys->i_pts = VLC_TS_INVALID;
p_sys->b_discontinuity = false;
p_sys->i_frame_size = 0;
p_sys->i_channels_conf = p_sys->i_channels = p_sys->i_rate =
p_sys->i_max_frame_size = p_sys->i_frame_length = p_sys->i_layer =
p_sys->i_bit_rate = 0;
/* Set output properties */
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