diff options
author | Michael Niedermayer <[email protected]> | 2024-06-03 03:20:41 +0200 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2024-06-12 00:39:13 +0200 |
commit | 034054b3706bea8524cf8846813e17636ca5ab33 (patch) | |
tree | e554c8351e55f489559204e3ce29a471ebbc550c | |
parent | 0c977d37aad609f6ed7d148c012da8bc83df8f0b (diff) |
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 <[email protected]>
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 61071faf4d..9016cd5ad0 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -3386,7 +3386,7 @@ static int mov_read_stts(MOVContext *c, AVIOContext *pb, MOVAtom atom) sc->stts_data[i].duration = 1; corrected_dts += (delta_magnitude < 0 ? (int64_t)delta_magnitude : 1) * sample_count; } 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; |