[vlc-commits] AVI: move i_rate to unsigned

Jean-Baptiste Kempf git at videolan.org
Sat May 23 16:00:55 CEST 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat May 23 15:47:57 2015 +0200| [b9eab800258d451e450c08529e06df81fc6e7804] | committer: Jean-Baptiste Kempf

AVI: move i_rate to unsigned

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

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

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 767333a..613210d 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -145,7 +145,7 @@ typedef struct
     unsigned int    i_cat; /* AUDIO_ES, VIDEO_ES */
     vlc_fourcc_t    i_codec;
 
-    int             i_rate;
+    unsigned int    i_rate;
     int             i_scale;
     unsigned int    i_samplesize;
 
@@ -784,7 +784,7 @@ aviindex:
         p_auds = AVI_ChunkFind( p_strl, AVIFOURCC_strf, 0 );
 
         if( p_auds->p_wf->wFormatTag != WAVE_FORMAT_PCM &&
-            (unsigned int)tk->i_rate == p_auds->p_wf->nSamplesPerSec )
+            tk->i_rate == p_auds->p_wf->nSamplesPerSec )
         {
             int64_t i_track_length =
                 tk->idx.p_entry[tk->idx.i_size-1].i_length +



More information about the vlc-commits mailing list