mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avformat/mov: Use int64_t in intermediate for corrected_dts
Fixes: CID1500312 Unintentional integer overflow Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 034054b3706bea8524cf8846813e17636ca5ab33) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
14aff02a10
commit
74aeed90eb
@ -3040,7 +3040,7 @@ static int mov_read_stts(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
|||||||
sc->stts_data[i].duration = 1;
|
sc->stts_data[i].duration = 1;
|
||||||
corrected_dts += (delta_magnitude < 0 ? (int64_t)delta_magnitude : 1) * sample_count;
|
corrected_dts += (delta_magnitude < 0 ? (int64_t)delta_magnitude : 1) * sample_count;
|
||||||
} else {
|
} else {
|
||||||
corrected_dts += sample_duration * sample_count;
|
corrected_dts += sample_duration * (int64_t)sample_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
current_dts += sc->stts_data[i].duration * (int64_t)sample_count;
|
current_dts += sc->stts_data[i].duration * (int64_t)sample_count;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user