fix: avoid upscaling for the video previewer (#2007)

Co-authored-by: sxyazi <sxyazi@gmail.com>
This commit is contained in:
gaesa 2024-12-07 15:07:57 +00:00 committed by sxyazi
parent 6308873f0b
commit de93e6208d
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# Default Configuration
> [!IMPORTANT]
> If you're using a stable release of Yazi instead of the latest nightly build, make sure you're checking these files from [the shipped tag][shipped], not the latest main branch.
> If you're using a stable release of Yazi instead of the latest nightly build, make sure you're checking these files from [the `shipped` tag][shipped], not the latest main branch.
This directory contains the default configuration files for Yazi:

View file

@ -56,7 +56,7 @@ function M:preload(job)
"-i", tostring(job.file.url),
"-vframes", 1,
"-q:v", qv,
"-vf", string.format("scale=%d:-2:flags=fast_bilinear", PREVIEW.max_width),
"-vf", string.format("scale=-1:'min(%d,ih)':flags=fast_bilinear", PREVIEW.max_height),
"-f", "image2",
"-y", tostring(cache),
}):status()