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