mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
lavf/avienc: use av_freep() avoid stale pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
46a723ec72
commit
b9e7bde6bd
@ -636,7 +636,7 @@ static int avi_write_trailer(AVFormatContext *s)
|
|||||||
for (i=0; i<s->nb_streams; i++) {
|
for (i=0; i<s->nb_streams; i++) {
|
||||||
AVIStream *avist= s->streams[i]->priv_data;
|
AVIStream *avist= s->streams[i]->priv_data;
|
||||||
for (j=0; j<avist->indexes.ents_allocated/AVI_INDEX_CLUSTER_SIZE; j++)
|
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);
|
av_freep(&avist->indexes.cluster);
|
||||||
avist->indexes.ents_allocated = avist->indexes.entry = 0;
|
avist->indexes.ents_allocated = avist->indexes.entry = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user