avformat/oggdec: reset nstreams in close
authorSchenk, Michael <Michael.Schenk@albistechnologies.com>
Mon, 7 Apr 2014 12:48:13 +0000 (14:48 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 7 Apr 2014 12:55:35 +0000 (14:55 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggdec.c

index 2a2be2a..fe19988 100644 (file)
@@ -647,6 +647,9 @@ static int ogg_read_close(AVFormatContext *s)
         av_freep(&ogg->streams[i].private);
         av_freep(&ogg->streams[i].new_metadata);
     }
+
+    ogg->nstreams = 0;
+
     av_freep(&ogg->streams);
     return 0;
 }