From ae14aa004da70392943dc3807347886b67514a49 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Fri, 16 Aug 2024 12:10:03 +0000 Subject: [PATCH] [bugfix] permit unspecified orientation data (#3205) --- internal/media/ffmpeg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/media/ffmpeg.go b/internal/media/ffmpeg.go index f6d74290c..f88908196 100644 --- a/internal/media/ffmpeg.go +++ b/internal/media/ffmpeg.go @@ -484,7 +484,7 @@ func (res *ffprobeResult) Process() (*result, error) { // Parse as integer value. i, _ := strconv.Atoi(str) - if i <= 0 || i >= 9 { + if i < 0 || i >= 9 { return nil, errors.New("invalid orientation data") }