mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Scan video orientation (#5189)
* Adjust video dimensions for side data rotation * Warn user when ffprobe version < 5. Only get rotation data on version >= 5
This commit is contained in:
@@ -12,11 +12,11 @@ import (
|
||||
|
||||
// Decorator adds video specific fields to a File.
|
||||
type Decorator struct {
|
||||
FFProbe ffmpeg.FFProbe
|
||||
FFProbe *ffmpeg.FFProbe
|
||||
}
|
||||
|
||||
func (d *Decorator) Decorate(ctx context.Context, fs models.FS, f models.File) (models.File, error) {
|
||||
if d.FFProbe == "" {
|
||||
if d.FFProbe == nil {
|
||||
return f, errors.New("ffprobe not configured")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user