mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-22 10:12:11 +00:00
[bugfix] permit unspecified orientation data (#3205)
This commit is contained in:
parent
586639ccf0
commit
ae14aa004d
|
@ -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