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:
f5048aa
)
matroskadec: fix a memory leak
author
Aurelien Jacobs
<aurel@gnuage.org>
Sun, 22 Jun 2008 15:46:36 +0000
(15:46 +0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Sun, 22 Jun 2008 15:46:36 +0000
(15:46 +0000)
Originally committed as revision 13890 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/matroskadec.c
patch
|
blob
|
history
diff --git
a/libavformat/matroskadec.c
b/libavformat/matroskadec.c
index
69208a8
..
e01af26
100644
(file)
--- a/
libavformat/matroskadec.c
+++ b/
libavformat/matroskadec.c
@@
-2887,6
+2887,9
@@
matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size,
memcpy (pkt->data, matroska->tracks[track]->encoding_settings, offset);
memcpy (pkt->data+offset, pkt_data, pkt_size);
+ if (pkt_data != data)
+ av_free(pkt_data);
+
if (n == 0)
pkt->flags = is_keyframe;
pkt->stream_index = stream_index;