[bugfix] permit unspecified orientation data (#3205)

This commit is contained in:
kim 2024-08-16 12:10:03 +00:00 committed by GitHub
parent 586639ccf0
commit ae14aa004d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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")
}