[vlc-commits] ogg: fix type conversion (cid #1125392 and #1125393)
Rémi Duraffort
git at videolan.org
Mon Nov 25 19:22:50 CET 2013
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Nov 25 19:07:10 2013 +0100| [85f92c8fa11741776a97c9b9e5dd1f43f336c876] | committer: Rémi Duraffort
ogg: fix type conversion (cid #1125392 and #1125393)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=85f92c8fa11741776a97c9b9e5dd1f43f336c876
---
modules/mux/ogg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/mux/ogg.c b/modules/mux/ogg.c
index 88632bc..f81c927 100644
--- a/modules/mux/ogg.c
+++ b/modules/mux/ogg.c
@@ -620,7 +620,7 @@ static bool AddIndexEntry( sout_mux_t *p_mux, uint64_t i_time, sout_input_t *p_i
i_posdelta = p_sys->i_pos - p_stream->skeleton.i_last_keyframe_pos;
i_timedelta = i_time - p_stream->skeleton.i_last_keyframe_time;
- if ( i_timedelta <= ( (unsigned int) p_mux->p_sys->skeleton.i_index_intvl * 1000 )
+ if ( i_timedelta <= ( (uint64_t) p_mux->p_sys->skeleton.i_index_intvl * 1000 )
|| i_posdelta <= 0xFFFF )
return false;
@@ -1356,7 +1356,7 @@ static bool AllocateIndex( sout_mux_t *p_mux, sout_input_t *p_input )
if ( p_stream->i_length )
{
- uint64_t i_interval = p_mux->p_sys->skeleton.i_index_intvl * 1000;
+ uint64_t i_interval = (uint64_t)p_mux->p_sys->skeleton.i_index_intvl * 1000;
uint64_t i;
if( p_input->p_fmt->i_cat == VIDEO_ES &&
More information about the vlc-commits
mailing list