mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-27 03:36:51 +03: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.
|
// Parse as integer value.
|
||||||
i, _ := strconv.Atoi(str)
|
i, _ := strconv.Atoi(str)
|
||||||
if i <= 0 || i >= 9 {
|
if i < 0 || i >= 9 {
|
||||||
return nil, errors.New("invalid orientation data")
|
return nil, errors.New("invalid orientation data")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue