mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
fix: avoid upscaling for the video previewer (#2007)
Co-authored-by: sxyazi <sxyazi@gmail.com>
This commit is contained in:
parent
6308873f0b
commit
de93e6208d
2 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue