Skip to content

Commit

Permalink
fix avif size calc
Browse files Browse the repository at this point in the history
  • Loading branch information
movsb committed Dec 9, 2024
1 parent e18b708 commit 234824a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/modules/renderers/media_size/formats.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ func avif(r io.Reader) (*Metadata, error) {
)

if size == 0x14 && version == 0x00 &&
(width > 0 && width < 10000) && // just in case
(height > 0 && height < 10000) {
(width > 0 && width < 65536) && // just in case
(height > 0 && height < 65536) {
return &Metadata{
Width: int(width),
Height: int(height),
Expand Down

0 comments on commit 234824a

Please sign in to comment.