mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-18 12:03:00 +00:00
[PR #2025] [MERGED] fix(avc): prevent segfault in report-only mode (-out=report) #2827
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/2025
Author: @cfsmp3
Created: 1/17/2026
Status: ✅ Merged
Merged: 1/17/2026
Merged by: @cfsmp3
Base:
master← Head:fix/avc-segfault-report-mode📝 Commits (1)
fecd24dfix(avc): prevent segfault in report-only mode (-out=report)📊 Changes
1 file changed (+13 additions, -0 deletions)
View changed files
📝
src/rust/src/avc/mod.rs(+13 -0)📄 Description
Summary
-out=reporton transport streams with AVC/H.264 or HEVC videoccxr_process_avc()Root Cause
When using
-out=reportmode, the encoder context (enc_ctx) is intentionally NULL because no output file needs to be created. The Rust FFI function was dereferencing this NULL pointer without validation.Test plan
-out=reportno longer segfaults on H.264 streams-out=reportworks on HEVC streamsFixes #2023
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.