Commit 108957c6 authored by Michael Niedermayer's avatar Michael Niedermayer

avidec/guess_ni_flag: fix harmless integer overflow

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b422e2c5
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment