Logo Search packages:      
Sourcecode: blender version File versions

int64_t av_rescale ( int64_t  a,
int64_t  b,
int64_t  c 

rescale a 64bit integer with rounding to nearest. a simple a*b/c isn't possible as it can overflow

Definition at line 102 of file mathematics.c.

References av_rescale_rnd().

Referenced by av_find_stream_info(), av_seek_frame(), av_seek_frame_binary(), and av_update_cur_dts().

    return av_rescale_rnd(a, b, c, AV_ROUND_NEAR_INF);

Generated by  Doxygen 1.6.0   Back to index