asfdec: set nb_streams to 0 in the asf_read_close
authorAlexandra Hájková <alexandra.khirnova@gmail.com>
Wed, 22 Jul 2015 19:38:15 +0000 (21:38 +0200)
committerAnton Khirnov <anton@khirnov.net>
Thu, 23 Jul 2015 07:47:59 +0000 (09:47 +0200)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/asfdec.c

index 6dc34d9..305c01c 100644 (file)
@@ -1457,6 +1457,7 @@ static int asf_read_close(AVFormatContext *s)
         av_dict_free(&asf->asf_sd[i].asf_met);
     }
 
+    asf->nb_streams = 0;
     return 0;
 }