Skip to content

Do not enable simple_motion_search_prune_rect - #5311

Merged
urvangjoshi merged 1 commit into
AOMediaCodec:mainfrom
xinzhao-apple:mr/avm-bugfix2
Aug 25, 2026
Merged

Do not enable simple_motion_search_prune_rect#5311
urvangjoshi merged 1 commit into
AOMediaCodec:mainfrom
xinzhao-apple:mr/avm-bugfix2

Conversation

@xinzhao-apple

Copy link
Copy Markdown
Contributor

av2_simple_motion_search_prune_rect() is not implemented for the AV2 partition set and asserts "Not implemented" since e2d0566. With --disable-ml-partition-speed-features=0 the speed feature turned on, the assert was compiled out under NDEBUG, and the encoder segfaulted: av2_prune_partitions_before_search() calls the function for rectangular block sizes, where convert_bsize_to_idx() returns -1 and sms_tree is NULL because fill_sms_buf() only populates square sizes.

This fixes #5310.

Comment thread av2/encoder/speed_features.c Outdated
av2_simple_motion_search_prune_rect() is not implemented for the AV2
partition set and asserts "Not implemented" since e2d0566. With
--disable-ml-partition-speed-features=0 the speed feature turned on, the
assert was compiled out under NDEBUG, and the encoder segfaulted:
av2_prune_partitions_before_search() calls the function for rectangular
block sizes, where convert_bsize_to_idx() returns -1 and sms_tree is NULL
because fill_sms_buf() only populates square sizes.

Default configurations are bit-identical; the speed feature was already
forced off there by av2_disable_ml_based_partition_sf().
@urvangjoshi
urvangjoshi merged commit 493a008 into AOMediaCodec:main Aug 25, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Encoder segfaults with --disable-ml-partition-speed-features=0

3 participants