[vlc-commits] demux: wav: change data_pos sign
Thomas Guillem
git at videolan.org
Mon Mar 16 13:31:32 CET 2020
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Mar 12 13:22:00 2020 +0100| [4b4d3ccdeeddae4bf3e79ebfd7814bd586b42b4f] | committer: Thomas Guillem
demux: wav: change data_pos sign
Use the same type than vlc_stream_Tell().
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4b4d3ccdeeddae4bf3e79ebfd7814bd586b42b4f
---
modules/demux/wav.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/demux/wav.c b/modules/demux/wav.c
index bb3194867d..68786b2ea2 100644
--- a/modules/demux/wav.c
+++ b/modules/demux/wav.c
@@ -47,7 +47,7 @@ typedef struct
es_format_t fmt;
es_out_id_t *p_es;
- int64_t i_data_pos;
+ uint64_t i_data_pos;
int64_t i_data_size;
unsigned int i_frame_size;
@@ -599,7 +599,8 @@ static int Open( vlc_object_t * p_this )
if( !b_is_rf64 || i_size < UINT32_MAX )
{
int64_t i_stream_size = stream_Size( p_demux->s );
- if( i_stream_size > 0 && i_stream_size >= i_size + p_sys->i_data_pos )
+ if( i_stream_size > 0
+ && (uint64_t) i_stream_size >= i_size + p_sys->i_data_pos )
p_sys->i_data_size = i_size;
}
More information about the vlc-commits
mailing list