]> git.sesse.net Git - vlc/commitdiff
* mmstu: added a couple of uint64_t casts to avoid overflow.
authorLaurent Aimar <fenrir@videolan.org>
Fri, 14 May 2004 20:46:33 +0000 (20:46 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Fri, 14 May 2004 20:46:33 +0000 (20:46 +0000)
modules/access/mms/mmstu.c

index 5c63b83654cf16efddcb686e901e705361a2ff22..d87e6a1773137293ed9053bb45f1a52bb2798314 100644 (file)
@@ -205,8 +205,8 @@ int  E_(MMSTUOpen)( input_thread_t *p_input )
     {
         p_input->stream.b_seekable = 1;
         p_input->stream.p_selected_area->i_size =
-            p_sys->i_header +
-            p_sys->i_packet_count * p_sys->i_packet_length;
+            (uint64_t)p_sys->i_header +
+            (uint64_t)p_sys->i_packet_count * (uint64_t)p_sys->i_packet_length;
     }
 
     p_input->stream.i_method = INPUT_METHOD_NETWORK;