OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c1e9d3
)
avformat/thp: fix variable types to avoid overflows
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 31 Oct 2013 01:19:40 +0000
(
02:19
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 17 Nov 2013 18:11:07 +0000
(19:11 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit
2b1056e4e27b046af3777e8bd65a5145abff878f
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/thp.c
patch
|
blob
|
history
diff --git
a/libavformat/thp.c
b/libavformat/thp.c
index
3717b8f
..
09979ac
100644
(file)
--- 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;
+ int
64_t
next_frame;
+
unsigned
next_framesz;
int video_stream_index;
int audio_stream_index;
int compcount;