[FFmpeg-cvslog] pmpdec: make i unsigned, avoid undefined behavior of i++
Michael Niedermayer
git at videolan.org
Mon Feb 25 18:40:24 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Feb 24 23:37:47 2013 +0100| [e6f27346b752914aab949aa8fc98928475d47075] | committer: Michael Niedermayer
pmpdec: make i unsigned, avoid undefined behavior of i++
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e6f27346b752914aab949aa8fc98928475d47075
---
libavformat/pmpdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/pmpdec.c b/libavformat/pmpdec.c
index 3b8c5f7..e0394a9 100644
--- a/libavformat/pmpdec.c
+++ b/libavformat/pmpdec.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list