mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 11:46:40 +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.
|
// 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