[vlc-commits] packetizer: a52: remove init from fmtout

Francois Cartegnie git at videolan.org
Tue Dec 13 19:59:40 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec 13 17:30:59 2016 +0100| [d337105a538fd9919eaac3f709b930ef43ab6b82] | committer: Francois Cartegnie

packetizer: a52: remove init from fmtout

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

 modules/packetizer/a52.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/modules/packetizer/a52.c b/modules/packetizer/a52.c
index e4c1346..ca42054 100644
--- a/modules/packetizer/a52.c
+++ b/modules/packetizer/a52.c
@@ -331,22 +331,15 @@ static int Open( vlc_object_t *p_this )
     p_sys->i_pts = VLC_TS_INVALID;
     p_sys->b_date_set = false;
     p_sys->b_discontuinity = false;
+    memset(&p_sys->frame, 0, sizeof(vlc_a52_header_t));
 
     block_BytestreamInit( &p_sys->bytestream );
 
-    /* Set output properties */
+    /* Set output properties (Passthrough ONLY) */
     p_dec->fmt_out.i_cat = AUDIO_ES;
     p_dec->fmt_out.i_codec = p_dec->fmt_in.i_codec;
     p_dec->fmt_out.audio = p_dec->fmt_in.audio;
 
-    p_sys->frame.b_eac3 = false;
-    p_sys->frame.i_rate = p_dec->fmt_out.audio.i_rate;
-    p_sys->frame.i_channels = p_dec->fmt_out.audio.i_channels;
-    p_sys->frame.i_size = p_dec->fmt_out.audio.i_bytes_per_frame;
-    p_sys->frame.i_samples = p_dec->fmt_out.audio.i_frame_length;
-    p_sys->frame.i_channels_conf = p_dec->fmt_out.audio.i_original_channels;
-    p_sys->frame.i_bitrate = p_dec->fmt_out.i_bitrate;
-
     /* Set callback */
     p_dec->pf_packetize = PacketizeBlock;
     p_dec->pf_flush     = PacketizeFlush;



More information about the vlc-commits mailing list