Skip to content

Commit 46de222

Browse files
committed
Rebase
1 parent 40c4151 commit 46de222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yazi-plugin/preset/plugins/video.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function M:preload(job)
6060
"-i", tostring(job.file.url),
6161
"-vframes", 1,
6262
"-q:v", qv,
63-
"-vf", string.format("scale=w=%d:h=%d:force_original_aspect_ratio=decrease:flags=fast_bilinear", rt.preview.max_width , rt.preview.max_height),
63+
"-vf", string.format("scale='min(%d,iw)':'min(%d,ih)':force_original_aspect_ratio=decrease:flags=fast_bilinear", rt.preview.max_width, rt.preview.max_height),
6464
"-f", "image2",
6565
"-y", tostring(cache),
6666
}):status()

0 commit comments

Comments
 (0)