mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-12 10:29:39 +00:00
Merge commit 'cd4d9df22738e6f147521ccb72c7930db6050914'
* commit 'cd4d9df22738e6f147521ccb72c7930db6050914': asfdec: free AVDictionaries properly when closing the demuxer Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
commit
988ddfea5e
@ -1453,10 +1453,12 @@ static int asf_read_close(AVFormatContext *s)
|
||||
ASFContext *asf = s->priv_data;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < asf->nb_streams; i++) {
|
||||
av_free_packet(&asf->asf_st[i]->pkt.avpkt);
|
||||
av_freep(&asf->asf_st[i]);
|
||||
for (i = 0; i < ASF_MAX_STREAMS; i++) {
|
||||
av_dict_free(&asf->asf_sd[i].asf_met);
|
||||
if (i < asf->nb_streams) {
|
||||
av_free_packet(&asf->asf_st[i]->pkt.avpkt);
|
||||
av_freep(&asf->asf_st[i]);
|
||||
}
|
||||
}
|
||||
|
||||
asf->nb_streams = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user