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
2cab85e8
Commit
2cab85e8
authored
Oct 01, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: fix pointer aliasing
av_freep() requires a pointer to void *. Nothing else is defined.
parent
4e54f297
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
modules/codec/avcodec/avcodec.c
modules/codec/avcodec/avcodec.c
+1
-1
modules/codec/avcodec/encoder.c
modules/codec/avcodec/encoder.c
+2
-1
No files found.
modules/codec/avcodec/avcodec.c
View file @
2cab85e8
...
@@ -341,7 +341,7 @@ static void CloseDecoder( vlc_object_t *p_this )
...
@@ -341,7 +341,7 @@ static void CloseDecoder( vlc_object_t *p_this )
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
av_free
p
(
&
p_sys
->
p_context
->
extradata
);
av_free
(
p_sys
->
p_context
->
extradata
);
avcodec_free_context
(
&
p_sys
->
p_context
);
avcodec_free_context
(
&
p_sys
->
p_context
);
free
(
p_sys
);
free
(
p_sys
);
}
}
...
...
modules/codec/avcodec/encoder.c
View file @
2cab85e8
...
@@ -1408,7 +1408,8 @@ void CloseEncoder( vlc_object_t *p_this )
...
@@ -1408,7 +1408,8 @@ void CloseEncoder( vlc_object_t *p_this )
#if (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 28, 0))
#if (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 28, 0))
avcodec_free_frame
(
&
p_sys
->
frame
);
avcodec_free_frame
(
&
p_sys
->
frame
);
#else
#else
av_freep
(
&
p_sys
->
frame
);
av_free
(
p_sys
->
frame
);
p_sys
->
frame
=
NULL
;
#endif
#endif
vlc_avcodec_lock
();
vlc_avcodec_lock
();
...
...
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