You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
asfdec: free AVDictionaries properly when closing the demuxer
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
committed by
Anton Khirnov
parent
90e648c508
commit
cd4d9df227
@@ -1453,10 +1453,12 @@ static int asf_read_close(AVFormatContext *s)
|
|||||||
ASFContext *asf = s->priv_data;
|
ASFContext *asf = s->priv_data;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < asf->nb_streams; 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_free_packet(&asf->asf_st[i]->pkt.avpkt);
|
||||||
av_freep(&asf->asf_st[i]);
|
av_freep(&asf->asf_st[i]);
|
||||||
av_dict_free(&asf->asf_sd[i].asf_met);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
asf->nb_streams = 0;
|
asf->nb_streams = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user