]> git.sesse.net Git - ffmpeg/commitdiff
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 3b8c5f701351246cb486a1af0d8c50cbd0a2bbed..e0394a95136065548244e02ed46aad73c9a9afbb 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;
-    int i;
+    unsigned i;
     uint64_t pos;
     int64_t fsize = avio_size(pb);