[Ffmpeg-cvslog] r7127 - trunk/libavformat/matroska.c
aurel
subversion
Mon Nov 20 01:04:08 CET 2006
Author: aurel
Date: Mon Nov 20 01:04:08 2006
New Revision: 7127
Modified:
trunk/libavformat/matroska.c
Log:
simplify free()+set to NULL using av_freep()
Modified: trunk/libavformat/matroska.c
==============================================================================
--- trunk/libavformat/matroska.c (original)
+++ trunk/libavformat/matroska.c Mon Nov 20 01:04:08 2006
@@ -988,8 +988,7 @@
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;
More information about the ffmpeg-cvslog
mailing list