Skip to content

avformat: fix segfault when reopening a file fails - #1341

Merged
ddennedy merged 1 commit into
mltframework:masterfrom
alcinos:alcinos/fix_avformat_segfault
Oct 12, 2026
Merged

ddennedy merged 1 commit into
mltframework:masterfrom
alcinos:alcinos/fix_avformat_segfault

Conversation

@alcinos

@alcinos alcinos commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Fix for #1335 by adding guards on second open.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved issues were identified.

0 open findings

What changed in this PR

Fixes null dereferences when reopening media files fails in the avformat producer.

Changes:

  • Preserves the original video context when reopening fails.
  • Handles audio reopen failures safely.
  • Prevents further setup after reopen errors.
File Description
src/​modules/​avformat/​producer_avformat.c Adds failure handling and cleanup guards for reopened contexts.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ddennedy ddennedy added this to the v7.44.0 milestone Oct 12, 2026
@ddennedy
ddennedy merged commit d9da2ba into mltframework:master Oct 12, 2026
15 checks passed
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.

3 participants