mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
matroskadec: favor av_freep()
av_freep() is safer as it zeros the pointer Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
43487bc5c1
commit
0722b4d08c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user