]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
use av_freep() instead of av_free() + =NULL.
authoraurel <aurel@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 7 Apr 2009 12:31:28 +0000 (12:31 +0000)
committeraurel <aurel@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 7 Apr 2009 12:31:28 +0000 (12:31 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18349 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/avienc.c

index 0e55953850c597cbdec3b19556b73c5e79fec49e..3fd98692abd54672724378bed273509ce139d097 100644 (file)
@@ -586,8 +586,7 @@ static int avi_write_trailer(AVFormatContext *s)
     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;
     }