avformat/oggdec: reset nstreams in close

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/64/head
Schenk, Michael 11 years ago committed by Michael Niedermayer
parent b0a8521383
commit 845414bbb1
  1. 3
      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;
}

Loading…
Cancel
Save