[vlc-commits] avformat: fix signed overflow
Rémi Denis-Courmont
git at videolan.org
Fri Oct 3 19:21:39 CEST 2014
vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Oct 2 21:39:35 2014 +0300| [12abe1c70944f279d731b0902e572822f5241037] | committer: Rémi Denis-Courmont
avformat: fix signed overflow
(cherry picked from commit 8ac5cc821f0a976c32885d56d33d2e358f776414)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=12abe1c70944f279d731b0902e572822f5241037
---
modules/demux/avformat/demux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 6cffad3..da7d4c1 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -757,7 +757,7 @@ static int Demux( demux_t *p_demux )
p_stream->time_base.den - i_start_time + VLC_TS_0;
}
if( pkt.duration > 0 && p_frame->i_length <= 0 )
- p_frame->i_length = pkt.duration * 1000000 *
+ p_frame->i_length = pkt.duration * INT64_C(1000000) *
p_stream->time_base.num /
p_stream->time_base.den;
More information about the vlc-commits
mailing list