Skip to content

Detach pool-owned extradata before decoder teardown#109

Merged
dio-az merged 1 commit into
mainfrom
fix/decoder-teardown
May 25, 2026
Merged

Detach pool-owned extradata before decoder teardown#109
dio-az merged 1 commit into
mainfrom
fix/decoder-teardown

Conversation

@dio-az
Copy link
Copy Markdown
Owner

@dio-az dio-az commented May 25, 2026

Fixes regression introduced in #71. The migration to avcodec_free_context() caused decoder teardown to free extradata pointing into the request pool, aborting the worker on thumb and audio-decoded requests.

Clear extradata before teardown so av_freep() becomes a no-op. Encoders are unaffected.

Fixes #108

@dio-az dio-az self-assigned this May 25, 2026
@dio-az dio-az added the bug Something isn't working label May 25, 2026
@dio-az dio-az marked this pull request as ready for review May 25, 2026 20:00
@dio-az dio-az merged commit 3de3839 into main May 25, 2026
34 of 35 checks passed
@dio-az dio-az deleted the fix/decoder-teardown branch May 25, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Thumbnail requests abort the worker process

1 participant