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:
389e200
)
cmdutils: use sws_freeContext() instead of av_freep().
author
Ronald S. Bultje
<rsbultje@gmail.com>
Fri, 27 May 2011 15:57:39 +0000
(11:57 -0400)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Fri, 27 May 2011 17:22:28 +0000
(13:22 -0400)
av_freep(swsContext) will leak all memory potentially
allocated within the swsContext.
cmdutils.c
patch
|
blob
|
history
diff --git
a/cmdutils.c
b/cmdutils.c
index
feeea69
..
778f0fb
100644
(file)
--- a/
cmdutils.c
+++ b/
cmdutils.c
@@
-76,7
+76,8
@@
void uninit_opts(void)
av_freep(&avformat_opts->key);
av_freep(&avformat_opts);
#if CONFIG_SWSCALE
- av_freep(&sws_opts);
+ sws_freeContext(sws_opts);
+ sws_opts = NULL;
#endif
for (i = 0; i < opt_name_count; i++) {
//opt_values are only stored for codec-specific options in which case