Commit b60938e4 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/avpacket: simplify freeing pkt->data

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5c50214e
......@@ -34,8 +34,7 @@
void av_destruct_packet(AVPacket *pkt)
{
av_free(pkt->data);
pkt->data = NULL;
av_freep(&pkt->data);
pkt->size = 0;
}
......
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