av_rescale

Rescale a 64-bit integer with rounding to nearest.

The operation is mathematically equivalent to a * b / c, but writing that directly can overflow.

This function is equivalent to av_rescale_rnd() with #AV_ROUND_NEAR_INF.

@see av_rescale_rnd(), av_rescale_q(), av_rescale_q_rnd()

extern (C) @nogc nothrow
long
av_rescale
(
long a
,
long b
,
long c
)

Meta