diff --git a/libavutil/rational.c b/libavutil/rational.c index 329fbf3302..1b7c6350e9 100644 --- a/libavutil/rational.c +++ b/libavutil/rational.c @@ -118,8 +118,6 @@ AVRational av_d2q(double d, int max) // (int64_t)rint() and llrint() do not work with gcc on ia64 and sparc64, // see Ticket2713 for affected gcc/glibc versions av_reduce(&a.num, &a.den, floor(d * den + 0.5), den, max); - if ((!a.num || !a.den) && d && max>0 && max