[vlc-commits] demux: wav: change i_size type

Thomas Guillem git at videolan.org
Mon Mar 16 13:31:34 CET 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Mar 12 13:28:48 2020 +0100| [9d7e963e054ba740e479792b1ff635cdc6736c30] | committer: Thomas Guillem

demux: wav: change i_size type

Use the same type than GetDWLE() that returns an uint32_t.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9d7e963e054ba740e479792b1ff635cdc6736c30
---

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

diff --git a/modules/demux/wav.c b/modules/demux/wav.c
index 67faac023a..85c759deab 100644
--- a/modules/demux/wav.c
+++ b/modules/demux/wav.c
@@ -135,7 +135,7 @@ static int ChunkSkip( demux_t *p_demux, uint32_t i_size )
     return i_ret < 0 || (size_t) i_ret != i_size ? VLC_EGENERIC : VLC_SUCCESS;
 }
 
-static int ChunkFind( demux_t *p_demux, const char *fcc, unsigned int *pi_size )
+static int ChunkFind( demux_t *p_demux, const char *fcc, uint32_t *pi_size )
 {
     const uint8_t *p_peek;
 
@@ -534,7 +534,7 @@ static int Open( vlc_object_t * p_this )
 
     const uint8_t *p_peek;
     bool           b_is_rf64;
-    unsigned int   i_size;
+    uint32_t       i_size;
 
     /* Is it a wav file ? */
     if( vlc_stream_Peek( p_demux->s, &p_peek, 12 ) < 12 )



More information about the vlc-commits mailing list