Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
f8fa5d73
Commit
f8fa5d73
authored
Sep 13, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: free extradata after closing the context
parent
10b5fe82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
modules/codec/avcodec/avcodec.c
modules/codec/avcodec/avcodec.c
+1
-3
No files found.
modules/codec/avcodec/avcodec.c
View file @
f8fa5d73
...
...
@@ -342,9 +342,6 @@ static void CloseDecoder( vlc_object_t *p_this )
break
;
}
av_free
(
p_sys
->
p_context
->
extradata
);
p_sys
->
p_context
->
extradata
=
NULL
;
if
(
!
p_sys
->
b_delayed_open
)
{
vlc_avcodec_lock
();
...
...
@@ -353,6 +350,7 @@ static void CloseDecoder( vlc_object_t *p_this )
msg_Dbg
(
p_dec
,
"ffmpeg codec (%s) stopped"
,
p_sys
->
p_codec
->
name
);
}
av_freep
(
&
p_sys
->
p_context
->
extradata
);
avcodec_free_context
(
&
p_sys
->
p_context
);
free
(
p_sys
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment