Skip to content

Off-by-one skips last column in intraBC mesh search #5390

Description

@KuGua98

In av2/encoder/mcomp.c, exhaustive_mesh_search() uses inclusive bounds for part_end_col:

for (c = part_start_col; c <= part_end_col; c += col_step)

But the scalar tail path currently iterates with:

for (i = 0; i < part_end_col - c; ++i)

This skips the candidate at c + i == part_end_col. When only one column remains, the loop does not run at all.

Suggested fix:

for (i = 0; i <= part_end_col - c; ++i)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions