[vlc-commits] mpeg4audio: fix date init order
Rémi Denis-Courmont
git at videolan.org
Fri May 4 12:15:27 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri May 4 13:09:12 2018 +0300| [5887f39746c823a88401de4e5af9466fd3ffb15f] | committer: Rémi Denis-Courmont
mpeg4audio: fix date init order
date_Set() was clobbered by date_Init().
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5887f39746c823a88401de4e5af9466fd3ffb15f
---
modules/packetizer/mpeg4audio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/packetizer/mpeg4audio.c b/modules/packetizer/mpeg4audio.c
index ca909333eb..a5047f7318 100644
--- a/modules/packetizer/mpeg4audio.c
+++ b/modules/packetizer/mpeg4audio.c
@@ -215,7 +215,6 @@ static int OpenPacketizer(vlc_object_t *p_this)
/* Misc init */
p_sys->i_state = STATE_NOSYNC;
p_sys->b_discontuinity = false;
- date_Set(&p_sys->end_date, 0);
block_BytestreamInit(&p_sys->bytestream);
p_sys->b_latm_cfg = false;
p_sys->i_warnings = 0;
@@ -294,6 +293,7 @@ static int OpenPacketizer(vlc_object_t *p_this)
date_Init(&p_sys->end_date, p_dec->fmt_out.audio.i_rate ?
p_dec->fmt_out.audio.i_rate : 48000, 1);
+ date_Set(&p_sys->end_date, VLC_TS_INVALID);
/* Set callbacks */
p_dec->pf_packetize = Packetize;
More information about the vlc-commits
mailing list