projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44bf251
)
matroskadec: Use av_freep in ebml_read_ascii
author
David Conrad
<lessen42@gmail.com>
Tue, 18 May 2010 21:21:23 +0000
(21:21 +0000)
committer
David Conrad
<lessen42@gmail.com>
Tue, 18 May 2010 21:21:23 +0000
(21:21 +0000)
Based on a Chromium patch
Originally committed as revision 23166 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/matroskadec.c
patch
|
blob
|
history
diff --git
a/libavformat/matroskadec.c
b/libavformat/matroskadec.c
index
90356d8
..
556d6b9
100644
(file)
--- a/
libavformat/matroskadec.c
+++ b/
libavformat/matroskadec.c
@@
-621,7
+621,7
@@
static int ebml_read_ascii(ByteIOContext *pb, int size, char **str)
if (!(*str = av_malloc(size + 1)))
return AVERROR(ENOMEM);
if (get_buffer(pb, (uint8_t *) *str, size) != size) {
- av_free
(*
str);
+ av_free
p(
str);
return AVERROR(EIO);
}
(*str)[size] = '\0';