mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
Test the integer math utility functions: av_gcd, av_rescale, av_rescale_rnd (all rounding modes including PASS_MINMAX), av_rescale_q, av_compare_ts, av_compare_mod, av_rescale_delta, and av_add_stable. Includes large-value tests that exercise the 128-bit multiply path in av_rescale_rnd. av_bessel_i0 is not tested since it uses floating point math that is not bitexact across platforms. Coverage for libavutil/mathematics.c: 0.00% -> 82.03% Remaining uncovered lines are av_bessel_i0 (float, 23 lines) and one edge case fallback in av_rescale_delta.