Skip to content

Fix possible mem leak with custom io#167

Merged
h4tr3d merged 7 commits intomasterfrom
fix_possible_mem_leak_with_custom_io
Feb 27, 2026
Merged

Fix possible mem leak with custom io#167
h4tr3d merged 7 commits intomasterfrom
fix_possible_mem_leak_with_custom_io

Conversation

@h4tr3d
Copy link
Owner

@h4tr3d h4tr3d commented Feb 27, 2026

No description provided.

Can occurs when avio_alloc_context() fails to allocate context.

Also, using av_freep(&avio) instead of avio_context_free(&avio) also can
cause memory leaks, at least black/white protocol lists.
...and more:
- CustomIO output open with Format Options, with/without Format Options
and Output Format specification
- URI based output open with Output Format specification
- Add initOutput() method that wraps avformat_init_outpur()
@h4tr3d h4tr3d merged commit b02f110 into master Feb 27, 2026
11 checks passed
@h4tr3d h4tr3d deleted the fix_possible_mem_leak_with_custom_io branch February 27, 2026 14:17
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.

1 participant