From e0f9d944a09f720f7645372a42d59b58eaed0544 Mon Sep 17 00:00:00 2001 From: anba8005 Date: Sun, 22 Jul 2012 13:41:35 +0300 Subject: [PATCH] dts overflow fixed --- hls/ngx_rtmp_hls_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hls/ngx_rtmp_hls_module.c b/hls/ngx_rtmp_hls_module.c index b4aa9c8..3c9a22d 100644 --- a/hls/ngx_rtmp_hls_module.c +++ b/hls/ngx_rtmp_hls_module.c @@ -873,7 +873,7 @@ ngx_rtmp_hls_audio(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, /* write to file */ av_init_packet(&packet); - packet.dts = h->timestamp * 90; + packet.dts = h->timestamp * 90L; packet.pts = packet.dts; packet.stream_index = ctx->out_astream; packet.data = buffer; @@ -1024,7 +1024,7 @@ ngx_rtmp_hls_video(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, } av_init_packet(&packet); - packet.dts = h->timestamp * 90; + packet.dts = h->timestamp * 90L; packet.pts = packet.dts + cts * 90; packet.stream_index = ctx->out_vstream; /*