mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2024-11-26 14:20:24 +00:00
[bugfix] permit unspecified orientation data (#3205)
This commit is contained in:
parent
586639ccf0
commit
ae14aa004d
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue