diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-03 16:05:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-03 16:05:09 +0200 |
commit | 0722b4d08cd6360509a2789cd7a2f3895cec225e (patch) | |
tree | debf31445ee97fbeaec3f14e075cdd7633e04b11 | |
parent | 43487bc5c10a99201dfbca7520530431a378901d (diff) | |
download | ffmpeg-0722b4d08cd6360509a2789cd7a2f3895cec225e.tar.gz |
matroskadec: favor av_freep()
av_freep() is safer as it zeros the pointer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/matroskadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 60bb73b327..ec52b50214 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -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; |