Skip to content

Fix AV1 EncTools frame type with deep lookahead - #388

Open
fjdoria76 wants to merge 1 commit into
intel:mainfrom
fjdoria76:fjdoria76-fix-av1e-enctools-lookahead-async
Open

Fix AV1 EncTools frame type with deep lookahead#388
fjdoria76 wants to merge 1 commit into
intel:mainfrom
fjdoria76:fjdoria76-fix-av1e-enctools-lookahead-async

Conversation

@fjdoria76

Copy link
Copy Markdown

AV1 EncTools can return MFX_ERR_MORE_DATA while deep lookahead is still buffering frames. In that case, the optional pre-encode GOP hint remains zero-initialized, but was copied into the task and replaced the normal GOP-derived frame type, causing Invalid FrameType:0 when async_depth > 1.

Only apply the EncTools frame-type hint when it is nonzero, preserving normal AV1 GOP fallback behavior while retaining asynchronous lookahead support.

Validation: git diff --check passed and CMake configuration succeeded. The full macOS build is blocked by missing va/va_version.h and unrelated AVX compiler configuration errors.

Fixes: #370

Preserve GOP-derived frame types when lookahead has not produced a valid hint.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.

[Bug]: AV1e EncTools + lookahead>8 + async_depth>1 causes "Invalid FrameType:0"

1 participant