aboutsummaryrefslogtreecommitdiffstats
path: root/libav/asf.c
diff options
context:
space:
mode:
authorZdenek Kabelac <kabi@informatics.muni.cz>2002-11-05 12:04:59 +0000
committerZdenek Kabelac <kabi@informatics.muni.cz>2002-11-05 12:04:59 +0000
commit4c3dff6de5cbce264722cebc6e279fbc5809103d (patch)
tree4c165ea62cb3a159a73f36c8ba26fa7a678635d7 /libav/asf.c
parent4fca59f2abeff94f306ccf4a6b232da51c5bad38 (diff)
downloadffmpeg-4c3dff6de5cbce264722cebc6e279fbc5809103d.tar.gz
* free extradata
Originally committed as revision 1167 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/asf.c')
-rw-r--r--libav/asf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libav/asf.c b/libav/asf.c
index bf2b942e03..a4a6054407 100644
--- a/libav/asf.c
+++ b/libav/asf.c
@@ -942,13 +942,14 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
return 0;
fail:
- for(i=0;i<s->nb_streams;i++) {
+ 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);
+ AVStream *st = s->streams[i];
+ av_free(st->priv_data);
+ av_free(st->codec.extradata);
}
- //av_free(asf);
return 0;
}