[vlc-devel] [PATCH 07/11] demux: wav: change i_data_size sign

Thomas Guillem thomas at gllm.fr
Thu Mar 12 14:56:29 CET 2020


---
 modules/demux/wav.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/modules/demux/wav.c b/modules/demux/wav.c
index 5997a3c1865..4ea30ab614e 100644
--- a/modules/demux/wav.c
+++ b/modules/demux/wav.c
@@ -47,7 +47,7 @@ typedef struct
     es_out_id_t     *p_es;
 
     uint64_t        i_data_pos;
-    int64_t         i_data_size;
+    uint64_t        i_data_size;
 
     unsigned int    i_frame_size;
     int             i_frame_samples;
@@ -262,11 +262,7 @@ static int ChunkParseDS64( demux_t *p_demux, uint32_t i_size )
     if( vlc_stream_Peek( p_demux->s, &p_peek, 24 ) < 24 )
         return VLC_EGENERIC;
 
-    uint64_t i_data_size = GetQWLE( &p_peek[8] );
-    if( i_data_size >> 62 )
-        p_sys->i_data_size = (int64_t)1 << 62;
-    else
-        p_sys->i_data_size = i_data_size;
+    p_sys->i_data_size = GetQWLE( &p_peek[8] );
 
     if( ChunkSkip( p_demux, i_size ) != VLC_SUCCESS )
         return VLC_EGENERIC;
-- 
2.20.1



More information about the vlc-devel mailing list