mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
lavfi/vf_cropdetect: replace round by lrint
lrint is at least as fast, and more accurate. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
18bc3dc768
commit
425c0685f2
@ -165,7 +165,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
||||
int w, h, x, y, shrink_by;
|
||||
AVDictionary **metadata;
|
||||
int outliers, last_y;
|
||||
int limit = round(s->limit);
|
||||
int limit = lrint(s->limit);
|
||||
|
||||
// ignore first 2 frames - they may be empty
|
||||
if (++s->frame_nb > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user