diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-26 03:18:17 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-26 03:19:55 +0200 |
commit | d480b36db4aaf921d2475d0a0152bf91d79cb2ef (patch) | |
tree | fc95d097826924f3737b22414808e4bb65524e75 | |
parent | 4703a345fb41b14fe28f7e6bf7f60bb2213aa9e0 (diff) | |
download | ffmpeg-d480b36db4aaf921d2475d0a0152bf91d79cb2ef.tar.gz |
av_d2q: Avoid llrint(), its not correctly implemented in old netbsd
This should fix some fate failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavutil/rational.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/rational.c b/libavutil/rational.c index 912abc3f05..7abf54cd0b 100644 --- a/libavutil/rational.c +++ b/libavutil/rational.c @@ -114,7 +114,7 @@ AVRational av_d2q(double d, int max) return (AVRational) { d < 0 ? -1 : 1, 0 }; exponent = FFMAX( (int)(log(fabs(d) + 1e-20)/LOG2), 0); den = 1LL << (61 - exponent); - av_reduce(&a.num, &a.den, llrint(d * den), den, max); + av_reduce(&a.num, &a.den, rint(d * den), den, max); return a; } |