projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b422e2c
)
avidec/guess_ni_flag: fix harmless integer overflow
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 10 Sep 2012 14:56:59 +0000
(16:56 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 10 Sep 2012 14:56:59 +0000
(16:56 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/avidec.c
patch
|
blob
|
history
diff --git
a/libavformat/avidec.c
b/libavformat/avidec.c
index
5abb9de
..
3e85d4e
100644
(file)
--- a/
libavformat/avidec.c
+++ b/
libavformat/avidec.c
@@
-1341,7
+1341,7
@@
static int guess_ni_flag(AVFormatContext *s){
if (last_start > first_end)
return 1;
idx= av_mallocz(sizeof(*idx) * s->nb_streams);
- for (min_pos=pos=0; min_pos!=INT64_MAX; pos= min_pos+1) {
+ for (min_pos=pos=0; min_pos!=INT64_MAX; pos= min_pos+1
LU
) {
int64_t max_dts = INT64_MIN/2, min_dts= INT64_MAX/2;
min_pos = INT64_MAX;