[FFmpeg-cvslog] r13890 - trunk/libavformat/matroskadec.c
aurel
subversion
Sun Jun 22 17:46:36 CEST 2008
Author: aurel
Date: Sun Jun 22 17:46:36 2008
New Revision: 13890
Log:
matroskadec: fix a memory leak
Modified:
trunk/libavformat/matroskadec.c
Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c (original)
+++ trunk/libavformat/matroskadec.c Sun Jun 22 17:46:36 2008
@@ -2887,6 +2887,9 @@ matroska_parse_block(MatroskaDemuxContex
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;
More information about the ffmpeg-cvslog
mailing list