simplify free()+set to NULL using av_freep()

Originally committed as revision 7127 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs 2006-11-20 00:04:08 +00:00
parent 3f9fea7230
commit a76920d843

View File

@ -988,8 +988,7 @@ matroska_deliver_packet (MatroskaDemuxContext *matroska,
av_realloc(matroska->packets, (matroska->num_packets - 1) *
sizeof(AVPacket *));
} else {
av_free(matroska->packets);
matroska->packets = NULL;
av_freep(&matroska->packets);
}
matroska->num_packets--;
return 0;