Commit 2edaff27 authored by aurel's avatar aurel

matroskadec: fix a memory leak

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13890 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 52220f6a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment