[FFmpeg-cvslog] lavf/avienc: use av_freep() avoid stale pointers
Michael Niedermayer
git at videolan.org
Mon Sep 16 23:03:41 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Sep 16 22:49:17 2013 +0200| [b9e7bde6bd84cc86191c94e539070ff0361c553b] | committer: Michael Niedermayer
lavf/avienc: use av_freep() avoid stale pointers
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b9e7bde6bd84cc86191c94e539070ff0361c553b
---
libavformat/avienc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 3511c81..a8d333e 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -636,7 +636,7 @@ static int avi_write_trailer(AVFormatContext *s)
for (i=0; i<s->nb_streams; i++) {
AVIStream *avist= s->streams[i]->priv_data;
for (j=0; j<avist->indexes.ents_allocated/AVI_INDEX_CLUSTER_SIZE; j++)
- av_free(avist->indexes.cluster[j]);
+ av_freep(&avist->indexes.cluster[j]);
av_freep(&avist->indexes.cluster);
avist->indexes.ents_allocated = avist->indexes.entry = 0;
}
More information about the ffmpeg-cvslog
mailing list