[FFmpeg-cvslog] avformat/oggdec: reset nstreams in close

Schenk, Michael git at videolan.org
Mon Apr 7 15:09:31 CEST 2014


ffmpeg | branch: master | Schenk, Michael <Michael.Schenk at albistechnologies.com> | Mon Apr  7 14:48:13 2014 +0200| [845414bbb122ca022f72729090378a3a06a81144] | committer: Michael Niedermayer

avformat/oggdec: reset nstreams in close

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=845414bbb122ca022f72729090378a3a06a81144
---

 libavformat/oggdec.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 2a2be2a..fe19988 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;
 }



More information about the ffmpeg-cvslog mailing list