mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 01:42:20 +00:00
avcodec/avpacket: simplify freeing pkt->data
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5c50214eed
commit
b60938e4fd
@ -34,8 +34,7 @@
|
||||
|
||||
void av_destruct_packet(AVPacket *pkt)
|
||||
{
|
||||
av_free(pkt->data);
|
||||
pkt->data = NULL;
|
||||
av_freep(&pkt->data);
|
||||
pkt->size = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user