aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-10 16:56:59 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-10 16:56:59 +0200
commit108957c661f9e2dc35dea8d55e5e5b1776f4a303 (patch)
tree820cf1a5a693e22e6b0f163159211b006c966144
parentb422e2c58a9606c670a0d2709b14fc8e0cb9a028 (diff)
downloadffmpeg-108957c661f9e2dc35dea8d55e5e5b1776f4a303.tar.gz
avidec/guess_ni_flag: fix harmless integer overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/avidec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 5abb9def3c..3e85d4e36e 100644
--- 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+1LU) {
int64_t max_dts = INT64_MIN/2, min_dts= INT64_MAX/2;
min_pos = INT64_MAX;