[vlc-commits] avformat: fix signed overflow

Rémi Denis-Courmont git at videolan.org
Thu Oct 2 20:39:59 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Oct  2 21:39:35 2014 +0300| [8ac5cc821f0a976c32885d56d33d2e358f776414] | committer: Rémi Denis-Courmont

avformat: fix signed overflow

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

 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