avutil/rational: use frexp rather than ad-hoc log to get floating point exponent
This simplifies and cleans up the code. Furthermore, it is much faster due to absence of the slow log computation. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Showing
Please
register
or
sign in
to comment