History

avutil/timecode: Use a 64bit framenum internally

Fixes: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself Fixes: 68550/clusterfuzz-testcase-minimized-ffmpeg_dem_MXF_fuzzer-6424065930756096

Michael Niedermayer committed 2 years ago

Commit d5ca3731 parent 7110a361 file · +2 −1Browse files

Showing the changes to libavutil/timecode.c (1 of 1 file). Show all

Unified · Split

libavutil/timecode.c+2−1
@@ -100,11 +100,12 @@ uint32_t av_timecode_get_smpte(AVRational rate, int drop, int hh, int mm, int ss · 99 unmodified lines
100 return tc;100 return tc;
101}101}
102 102
103char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum)103char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum_arg)
104{104{
105 int fps = tc->fps;105 int fps = tc->fps;
106 int drop = tc->flags & AV_TIMECODE_FLAG_DROPFRAME;106 int drop = tc->flags & AV_TIMECODE_FLAG_DROPFRAME;
107 int hh, mm, ss, ff, ff_len, neg = 0;107 int hh, mm, ss, ff, ff_len, neg = 0;
108 int64_t framenum = framenum_arg;
108 109
109 framenum += tc->start;110 framenum += tc->start;
110 if (drop)111 if (drop)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t