Skip to content

fixed the main buffer's size#13

Open
andreichuk wants to merge 1 commit intoNUlliiON:mainfrom
andreichuk:2022/05/07/CorrectMaxSize
Open

fixed the main buffer's size#13
andreichuk wants to merge 1 commit intoNUlliiON:mainfrom
andreichuk:2022/05/07/CorrectMaxSize

Conversation

@andreichuk
Copy link

Encoding throws System.IndexOutOfRangeException without the fix.

Example:

  • width: 1
  • height: 1
  • channels: 4
  • space: srgb or linear
  • pixel: rgba (5, 10, 20, 0) or rgba (100, 100, 100, 1)

see also https://github.com/phoboslab/qoi/blob/805953b1c7310a0f78839938786340e9db33c8ee/qoi.h#L394

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant