Commit 0722b4d0 authored by Michael Niedermayer's avatar Michael Niedermayer

matroskadec: favor av_freep()

av_freep() is safer as it zeros the pointer
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 43487bc5
......@@ -2276,7 +2276,7 @@ static int matroska_parse_frame(MatroskaDemuxContext *matroska,
memcpy(pkt->data + offset, pkt_data, pkt_size);
if (pkt_data != data)
av_free(pkt_data);
av_freep(&pkt_data);
pkt->flags = is_keyframe;
pkt->stream_index = st->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