diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2006-11-20 00:04:08 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2006-11-20 00:04:08 +0000 |
commit | a76920d843713fdae5baf648dbc79e8c94bb0a23 (patch) | |
tree | 8697e5165d9222a7eea7761a00cbe0aea697cfef | |
parent | 3f9fea7230e6cfb1b6c1e04561408f3a1203a6cf (diff) | |
download | ffmpeg-a76920d843713fdae5baf648dbc79e8c94bb0a23.tar.gz |
simplify free()+set to NULL using av_freep()
Originally committed as revision 7127 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/matroska.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/matroska.c b/libavformat/matroska.c index 7eca05b9b0..0f71b287bc 100644 --- a/libavformat/matroska.c +++ b/libavformat/matroska.c @@ -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; |