Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failed: this_val < max_bin_val intra_mode_search.c, line 359 when running avif_example_encode.c with depth > 8 #1797

Open
lumesca-neil opened this issue Nov 22, 2023 · 1 comment

Comments

@lumesca-neil
Copy link

Issue Description:
When attempting to run the avif_example_encode.c example with a targeted bit depth higher than 8, an assertion failure occurs. The specific error is:

Assertion failed: this_val < max_bin_val, file C:\Users\nward\Development\experimental\libavif\ext\aom\av1\encoder\intra_mode_search.c, line 359

Steps to Reproduce:

  1. Use avif_example_encode.c with a bit depth higher than 8. I have tried 10 and 12
  2. Set encodeYUVDirectly to 1.
  3. The issue occurs with the avifEncoderCreate() is called.

Expected Behavior:
The example should run without assertion failures even when using a bit depth higher than 8.

Additional Information:

  • Operating System: Win 10 - x64
  • Compiler and Version: VC++ 2019
  • libavif Version: main - commit f7ce882

Code Snippet:

avifImage* image = avifImageCreate(128, 128, 10, AVIF_PIXEL_FORMAT_YUV444);

Note:
The issue does not occur with a bit depth of 8, indicating that the problem might be related to the handling of higher bit depths.


@y-guyon
Copy link
Collaborator

y-guyon commented Nov 24, 2023

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

No branches or pull requests

2 participants