aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/oggdec.c
diff options
context:
space:
mode:
authorSchenk, Michael <Michael.Schenk@albistechnologies.com>2014-04-07 14:48:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-07 14:55:35 +0200
commit845414bbb122ca022f72729090378a3a06a81144 (patch)
tree7eedcd8b02d72d727540d1fd1e5bb9f6638cafe1 /libavformat/oggdec.c
parentb0a8521383e0f2feb63d44e2fc6e17bf607dac76 (diff)
downloadffmpeg-845414bbb122ca022f72729090378a3a06a81144.tar.gz
avformat/oggdec: reset nstreams in close
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/oggdec.c')
-rw-r--r--libavformat/oggdec.c3
1 files changed, 3 insertions, 0 deletions
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;
}