Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
28bde843
Commit
28bde843
authored
6 years ago
by
Andreas Traczyk
Browse files
Options
Downloads
Patches
Plain Diff
media encoder: fix avcodec_free_context crash(native windows build)
Change-Id: I4ca49c6dc3feb55441079c1c2ad3d71d84c360ef
parent
9f3931cd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/media/media_encoder.cpp
+7
-1
7 additions, 1 deletion
src/media/media_encoder.cpp
with
7 additions
and
1 deletion
src/media/media_encoder.cpp
+
7
−
1
View file @
28bde843
...
...
@@ -54,7 +54,13 @@ MediaEncoder::~MediaEncoder()
av_write_trailer
(
outputCtx_
);
for
(
auto
encoderCtx
:
encoders_
)
avcodec_free_context
(
&
encoderCtx
);
if
(
encoderCtx
)
{
#ifndef _MSC_VER
avcodec_free_context
(
&
encoderCtx
);
#else
avcodec_close
(
encoderCtx
);
#endif
}
avformat_free_context
(
outputCtx_
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment