mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Fix a few cases where ffmpeg produces no output (#3161)
* Treat no output from ffmpeg as an error condition * Distinguish file vs. video duration, and use later where appropriate * Check for empty file in generateFile Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -49,7 +49,7 @@ func (d *Decorator) Decorate(ctx context.Context, fs file.FS, f file.File) (file
|
||||
AudioCodec: videoFile.AudioCodec,
|
||||
Width: videoFile.Width,
|
||||
Height: videoFile.Height,
|
||||
Duration: videoFile.Duration,
|
||||
Duration: videoFile.FileDuration,
|
||||
FrameRate: videoFile.FrameRate,
|
||||
BitRate: videoFile.Bitrate,
|
||||
Interactive: interactive,
|
||||
|
||||
Reference in New Issue
Block a user