avformat/oggdec: reset nstreams in close

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Schenk, Michael 2014-04-07 14:48:13 +02:00 committed by Michael Niedermayer
parent b0a8521383
commit 845414bbb1
1 changed files with 3 additions and 0 deletions

View 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;
}