Skip to content

fix tile_width_in_mbs, tile_height_in_mbs - #287

Merged
kpchoi merged 1 commit into
AcademySoftwareFoundation:mainfrom
gn-ahn:fix_tile_width_height
Sep 28, 2026
Merged

kpchoi merged 1 commit into
AcademySoftwareFoundation:mainfrom
gn-ahn:fix_tile_width_height

Conversation

@gn-ahn

@gn-ahn gn-ahn commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Summary

According to the specification (RFC 9924):

  • The value of tile_width_in_mbs MUST be greater than or equal to 16.
  • The value of tile_height_in_mbs MUST be greater than or equal to 8.

Problem

When the picture width or height is smaller than the minimum tile dimensions, clamping param->tile_w and param->tile_h to the picture size (ctx->w, ctx->h) causes the tile dimensions to fall below the required minimums for constrained profiles, violating the standard.

Solution

Added a check to enforce OAPV_MIN_TILE_W and OAPV_MIN_TILE_H after picture-size clamping for constrained profiles (!unconst).

The value of tile_width_in_mbs MUST be greater than or equal to 16.

The value of tile_height_in_mbs MUST be greater than or equal to 8.

Signed-off-by: gn-ahn <earbuds@naver.com>

@kpchoi kpchoi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kpchoi
kpchoi merged commit 4c9c1db into AcademySoftwareFoundation:main Sep 28, 2026
10 checks passed
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.

2 participants