mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: don't fail on videos with embedded images (#2590)
This commit is contained in:
parent
2e5f5ae5a6
commit
99ea3b74c4
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ function M:preload(job)
|
||||||
"-skip_frame", "nokey", "-ss", ss,
|
"-skip_frame", "nokey", "-ss", ss,
|
||||||
"-an", "-sn", "-dn",
|
"-an", "-sn", "-dn",
|
||||||
"-i", tostring(job.file.url),
|
"-i", tostring(job.file.url),
|
||||||
"-map", "0:v", "-vframes", 1,
|
"-vframes", 1,
|
||||||
"-q:v", qv,
|
"-q:v", qv,
|
||||||
"-vf", string.format("scale=-1:'min(%d,ih)':flags=fast_bilinear", rt.preview.max_height),
|
"-vf", string.format("scale=-1:'min(%d,ih)':flags=fast_bilinear", rt.preview.max_height),
|
||||||
"-f", "image2",
|
"-f", "image2",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue