OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df85755
)
avformat/utils: free AVStream.codec properly in free_stream()
author
Aaron Levinson
<alevinsn@aracnet.com>
Fri, 21 Apr 2017 06:30:13 +0000
(23:30 -0700)
committer
James Almer
<jamrial@gmail.com>
Sat, 6 May 2017 20:23:28 +0000
(17:23 -0300)
Fixes memory leaks.
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
ba82a76
..
fbd8b58
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-4266,9
+4266,7
@@
static void free_stream(AVStream **pst)
av_freep(&st->index_entries);
#if FF_API_LAVF_AVCTX
FF_DISABLE_DEPRECATION_WARNINGS
- av_freep(&st->codec->extradata);
- av_freep(&st->codec->subtitle_header);
- av_freep(&st->codec);
+ avcodec_free_context(&st->codec);
FF_ENABLE_DEPRECATION_WARNINGS
#endif
av_freep(&st->priv_data);