git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8c10a5
)
avformat/ffmenc: Use av_freep() to avoid leaving stale pointers in memory
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 18 Feb 2015 13:31:11 +0000
(14:31 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 18 Feb 2015 13:31:11 +0000
(14:31 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/ffmenc.c
patch
|
blob
|
history
diff --git
a/libavformat/ffmenc.c
b/libavformat/ffmenc.c
index
cacf0d7
..
10acfbe
100644
(file)
--- a/
libavformat/ffmenc.c
+++ b/
libavformat/ffmenc.c
@@
-137,7
+137,7
@@
static int ffm_write_header_codec_ctx(AVIOContext *pb, AVCodecContext *ctx, unsi
goto fail;
if (buf && strlen(buf)) {
avio_write(tmp, buf, strlen(buf));
- av_free
(
buf);
+ av_free
p(&
buf);
need_coma = 1;
}
if ((ret = av_opt_serialize(ctx, 0, SKIP_DEFAULTS | OPT_FLAGS_EXACT, &buf, '=', ',')) < 0)