You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavfi/vf_crop: replace round by lrint
lrint is at least as fast, avoids an implicit cast, and uses a superior rounding mode. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
@@ -126,7 +126,7 @@ static inline int normalize_double(int *n, double d)
|
|||||||
*n = d > INT_MAX ? INT_MAX : INT_MIN;
|
*n = d > INT_MAX ? INT_MAX : INT_MIN;
|
||||||
ret = AVERROR(EINVAL);
|
ret = AVERROR(EINVAL);
|
||||||
} else
|
} else
|
||||||
*n = round(d);
|
*n = lrint(d);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user