Skip to content

Fix crash on width or height of 1#2644

Merged
barrbrain merged 1 commit intoxiph:masterfrom
barrbrain:fix-1x1
Jan 20, 2021
Merged

Fix crash on width or height of 1#2644
barrbrain merged 1 commit intoxiph:masterfrom
barrbrain:fix-1x1

Conversation

@barrbrain
Copy link
Collaborator

Zero bits were incorrectly chosen to encode a dimension of 1; enforce a minimum of 1 bit per dimension.
Dimensions smaller than 16 are only admitted for still_picture. Add encode-decode tests for these tiny images.

@coveralls
Copy link
Collaborator

coveralls commented Jan 20, 2021

Coverage Status

Coverage decreased (-0.5%) to 65.608% when pulling eab1cd6 on barrbrain:fix-1x1 into b03c614 on xiph:master.

Zero bits were incorrectly chosen to encode a dimension of 1;
enforce a minimum of 1 bit per dimension.

Dimensions smaller than 16 are only admitted for still_picture.
Add encode-decode tests for these tiny images.
@barrbrain barrbrain merged commit eab1cd6 into xiph:master Jan 20, 2021
@barrbrain barrbrain deleted the fix-1x1 branch January 20, 2021 18:01
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.

4 participants