Commit 7761373d authored by kabi's avatar kabi

* free extradata


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1167 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 24ac4b8a
......@@ -944,11 +944,12 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
fail:
for(i=0;i<s->nb_streams;i++) {
AVStream *st = s->streams[i];
if (st)
if (st) {
av_free(st->priv_data);
av_free(st->codec.extradata);
}
av_free(st);
}
//av_free(asf);
return -1;
}
......@@ -1181,14 +1182,13 @@ static int asf_read_packet(AVFormatContext *s, AVPacket *pkt)
static int asf_read_close(AVFormatContext *s)
{
//ASFContext *asf = s->priv_data;
int i;
for(i=0;i<s->nb_streams;i++) {
AVStream *st = s->streams[i];
av_free(st->priv_data);
av_free(st->codec.extradata);
}
//av_free(asf);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment