[FFmpeg-cvslog] avformat/mov: reset drefs_count 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| [b0a8521383e0f2feb63d44e2fc6e17bf607dac76] | committer: Michael Niedermayer
avformat/mov: reset drefs_count in close
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b0a8521383e0f2feb63d44e2fc6e17bf607dac76
---
libavformat/mov.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index ffb2573..d10bac5 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3348,6 +3348,9 @@ static int mov_read_close(AVFormatContext *s)
av_freep(&sc->drefs[j].dir);
}
av_freep(&sc->drefs);
+
+ sc->drefs_count = 0;
+
if (!sc->pb_is_copied)
avio_close(sc->pb);
More information about the ffmpeg-cvslog
mailing list