diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-02-23 21:50:22 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-24 00:13:54 +0100 |
commit | 7276e9ea95a5d086e4892d0c698c75b0f8ea8d5e (patch) | |
tree | c72e17e1a5f0a1aaaf7897895324f10136476e7b | |
parent | b0bc0eb9789df9c8fc75603203b440893d594be5 (diff) | |
download | ffmpeg-streaming-7276e9ea95a5d086e4892d0c698c75b0f8ea8d5e.zip ffmpeg-streaming-7276e9ea95a5d086e4892d0c698c75b0f8ea8d5e.tar.gz |
pmpdec: fix signedness
Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/pmpdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/pmpdec.c b/libavformat/pmpdec.c index 358f7b6..1ee2e2e 100644 --- a/libavformat/pmpdec.c +++ b/libavformat/pmpdec.c @@ -44,7 +44,7 @@ static int pmp_header(AVFormatContext *s) PMPContext *pmp = s->priv_data; AVIOContext *pb = s->pb; int tb_num, tb_den; - int index_cnt; + uint32_t index_cnt; int audio_codec_id = AV_CODEC_ID_NONE; int srate, channels; int i; @@ -93,7 +93,7 @@ static int pmp_header(AVFormatContext *s) channels = avio_rl32(pb) + 1; pos = avio_tell(pb) + 4*index_cnt; for (i = 0; i < index_cnt; i++) { - int size = avio_rl32(pb); + uint32_t size = avio_rl32(pb); int flags = size & 1 ? AVINDEX_KEYFRAME : 0; if (url_feof(pb)) { av_log(s, AV_LOG_FATAL, "Encountered EOF while reading index.\n"); |