Browse Source

avcodec/avpacket: simplify freeing pkt->data

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 11 years ago
parent
commit
b60938e4fd
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/avpacket.c

+ 1
- 2
libavcodec/avpacket.c 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;
}



Loading…
Cancel
Save