[FFmpeg-cvslog] r18349 - trunk/libavformat/avienc.c

aurel subversion
Tue Apr 7 14:31:28 CEST 2009


Author: aurel
Date: Tue Apr  7 14:31:28 2009
New Revision: 18349

Log:
use av_freep() instead of av_free() + =NULL.

Modified:
   trunk/libavformat/avienc.c

Modified: trunk/libavformat/avienc.c
==============================================================================
--- trunk/libavformat/avienc.c	Tue Apr  7 14:28:41 2009	(r18348)
+++ trunk/libavformat/avienc.c	Tue Apr  7 14:31:28 2009	(r18349)
@@ -586,8 +586,7 @@ static int avi_write_trailer(AVFormatCon
     for (i=0; i<MAX_STREAMS; i++) {
          for (j=0; j<avi->indexes[i].ents_allocated/AVI_INDEX_CLUSTER_SIZE; j++)
               av_free(avi->indexes[i].cluster[j]);
-         av_free(avi->indexes[i].cluster);
-         avi->indexes[i].cluster = NULL;
+         av_freep(&avi->indexes[i].cluster);
          avi->indexes[i].ents_allocated = avi->indexes[i].entry = 0;
     }
 



More information about the ffmpeg-cvslog mailing list