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)
In
av2/encoder/mcomp.c,exhaustive_mesh_search()uses inclusive bounds forpart_end_col:But the scalar tail path currently iterates with:
This skips the candidate at
c + i == part_end_col. When only one column remains, the loop does not run at all.Suggested fix: