mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 23:13:11 -06:00
mediaapi/thumbnailer: Use math.Inf() for max aspect and size
This commit is contained in:
parent
2cd886656f
commit
9a67ea746d
|
|
@ -310,8 +310,8 @@ func resize(dst types.Path, buffer []byte, w, h int, crop bool, logger *log.Entr
|
|||
func newThumbnailFitness() thumbnailFitness {
|
||||
return thumbnailFitness{
|
||||
isSmaller: 1,
|
||||
aspect: float64(16384 * 16384),
|
||||
size: float64(16384 * 16384),
|
||||
aspect: math.Inf(1),
|
||||
size: math.Inf(1),
|
||||
methodMismatch: 0,
|
||||
fileSize: types.FileSizeBytes(math.MaxInt64),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue