diff --git a/libavformat/asf.c b/libavformat/asf.c index 6491c0f331..4c99182480 100644 --- a/libavformat/asf.c +++ b/libavformat/asf.c @@ -878,10 +878,13 @@ static int asf_read_packet(AVFormatContext *s, AVPacket *pkt) return 0; } +static void asf_reset_header(AVFormatContext *s); + static int asf_read_close(AVFormatContext *s) { int i; + asf_reset_header(s); for(i=0;inb_streams;i++) { AVStream *st = s->streams[i]; av_free(st->priv_data);