[SCM] libav/experimental: use av_freep() instead of av_free() + =NULL.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:43:22 UTC 2013
The following commit has been merged in the experimental branch:
commit b02d3aef9415bb07db1bd3ee285dad92b35eee41
Author: Aurelien Jacobs <aurel at gnuage.org>
Date: Tue Apr 7 12:31:28 2009 +0000
use av_freep() instead of av_free() + =NULL.
Originally committed as revision 18349 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 0e55953..3fd9869 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -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;
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list