avcodec/avpacket: simplify freeing pkt->data

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-10-07 03:40:15 +02:00
parent 5c50214eed
commit b60938e4fd

View File

@ -34,8 +34,7 @@
void av_destruct_packet(AVPacket *pkt)
{
av_free(pkt->data);
pkt->data = NULL;
av_freep(&pkt->data);
pkt->size = 0;
}