]> git.sesse.net Git - vlc/commitdiff
avformat: fix signed overflow
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 2 Oct 2014 18:39:35 +0000 (21:39 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 2 Oct 2014 18:39:35 +0000 (21:39 +0300)
modules/demux/avformat/demux.c

index 6cffad3b6dd831cc81e2fdc6d66e4f0eb120453c..da7d4c1679eec69a02b8b22b44e8802a8d91c54f 100644 (file)
@@ -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;