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>
This commit is contained in:
Michael Niedermayer 2013-05-26 03:18:17 +02:00
parent 4703a345fb
commit d480b36db4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}