pmpdec: make i unsigned, avoid undefined behavior of i++
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 24 Feb 2013 22:37:47 +0000 (23:37 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 25 Feb 2013 17:36:21 +0000 (18:36 +0100)
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/pmpdec.c

index 3b8c5f7..e0394a9 100644 (file)
@@ -47,7 +47,7 @@ static int pmp_header(AVFormatContext *s)
     uint32_t index_cnt;
     int audio_codec_id = AV_CODEC_ID_NONE;
     int srate, channels;
     uint32_t index_cnt;
     int audio_codec_id = AV_CODEC_ID_NONE;
     int srate, channels;
-    int i;
+    unsigned i;
     uint64_t pos;
     int64_t fsize = avio_size(pb);
 
     uint64_t pos;
     int64_t fsize = avio_size(pb);