[vlc-commits] mepg_audio: fix p_sys not initialized

Thomas Guillem git at videolan.org
Wed Sep 16 17:32:01 CEST 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Sep 16 17:16:38 2015 +0200| [208eb5c87b3711970dba5c232803d7a5327c81e0] | committer: Thomas Guillem

mepg_audio: fix p_sys not initialized

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=208eb5c87b3711970dba5c232803d7a5327c81e0
---

 modules/codec/mpeg_audio.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/codec/mpeg_audio.c b/modules/codec/mpeg_audio.c
index 19a21a0..762ac3c 100644
--- a/modules/codec/mpeg_audio.c
+++ b/modules/codec/mpeg_audio.c
@@ -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;



More information about the vlc-commits mailing list