Commit fd5451ec authored by Laurent Aimar's avatar Laurent Aimar

* mmstu: added a couple of uint64_t casts to avoid overflow.

parent de96e9ec
...@@ -205,8 +205,8 @@ int E_(MMSTUOpen)( input_thread_t *p_input ) ...@@ -205,8 +205,8 @@ int E_(MMSTUOpen)( input_thread_t *p_input )
{ {
p_input->stream.b_seekable = 1; p_input->stream.b_seekable = 1;
p_input->stream.p_selected_area->i_size = p_input->stream.p_selected_area->i_size =
p_sys->i_header + (uint64_t)p_sys->i_header +
p_sys->i_packet_count * p_sys->i_packet_length; (uint64_t)p_sys->i_packet_count * (uint64_t)p_sys->i_packet_length;
} }
p_input->stream.i_method = INPUT_METHOD_NETWORK; p_input->stream.i_method = INPUT_METHOD_NETWORK;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment