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

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


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

packetizer: dts: remove init from fmtout

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

 modules/packetizer/dts.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/modules/packetizer/dts.c b/modules/packetizer/dts.c
index aaa2dad..51babb0 100644
--- a/modules/packetizer/dts.c
+++ b/modules/packetizer/dts.c
@@ -324,20 +324,14 @@ static int Open( vlc_object_t *p_this )
     p_sys->i_pts = VLC_TS_INVALID;
     p_sys->b_date_set = false;
     p_sys->b_discontinuity = false;
-
+    memset(&p_sys->dts, 0, sizeof(vlc_dts_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->dts.i_rate = p_dec->fmt_out.audio.i_rate;
-    p_sys->dts.i_frame_size = p_dec->fmt_out.audio.i_bytes_per_frame;
-    p_sys->dts.i_frame_length = p_dec->fmt_out.audio.i_frame_length;
-    p_sys->dts.i_original_channels = p_dec->fmt_out.audio.i_original_channels;
-    p_sys->dts.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