From 845414bbb122ca022f72729090378a3a06a81144 Mon Sep 17 00:00:00 2001 From: "Schenk, Michael" Date: Mon, 7 Apr 2014 14:48:13 +0200 Subject: [PATCH] avformat/oggdec: reset nstreams in close Signed-off-by: Michael Niedermayer --- libavformat/oggdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index 2a2be2a509..fe19988c07 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -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; }