diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-31 02:19:40 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-17 19:11:07 +0100 |
commit | 807d85400c735127d0195329638d54a5d65b2b44 (patch) | |
tree | b688c27a0fdadce47d87e3d5ba89916e743b7dfa | |
parent | 5c1e9d3722db553c2bc08c9fd878b4be153566c4 (diff) | |
download | ffmpeg-807d85400c735127d0195329638d54a5d65b2b44.tar.gz |
avformat/thp: fix variable types to avoid overflows
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 2b1056e4e27b046af3777e8bd65a5145abff878f)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/thp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavformat/thp.c b/libavformat/thp.c index 3717b8f12c..09979aca99 100644 --- a/libavformat/thp.c +++ b/libavformat/thp.c @@ -26,15 +26,15 @@ typedef struct ThpDemuxContext { int version; - int first_frame; - int first_framesz; - int last_frame; + unsigned first_frame; + unsigned first_framesz; + unsigned last_frame; int compoff; - int framecnt; + unsigned framecnt; AVRational fps; - int frame; - int next_frame; - int next_framesz; + unsigned frame; + int64_t next_frame; + unsigned next_framesz; int video_stream_index; int audio_stream_index; int compcount; |