Found-by: Youngjae Choi <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
---
libavutil/timecode.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavutil/timecode.c b/libavutil/timecode.c
index f40a10eb385..f454466f975 100644
--- a/libavutil/timecode.c
+++ b/libavutil/timecode.c
@@ -61,8 +61,8 @@ uint32_t av_timecode_get_smpte_from_framenum(const AVTimecode
*tc, int framenum)
framenum = av_timecode_adjust_ntsc_framenum2(framenum, tc->fps);
ff = framenum % fps;
ss = framenum / fps % 60;
- mm = framenum / (fps*60) % 60;
- hh = framenum / (fps*3600) % 24;
+ mm = framenum / (fps*60LL) % 60;
+ hh = framenum / (fps*3600LL) % 24;
return av_timecode_get_smpte(tc->rate, drop, hh, mm, ss, ff);
}
--
2.47.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".