Browse Source

lavf/avienc: use av_freep() avoid stale pointers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Michael Niedermayer 11 years ago
parent
commit
b9e7bde6bd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/avienc.c

+ 1
- 1
libavformat/avienc.c View File

@@ -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;
}


Loading…
Cancel
Save