summaryrefslogtreecommitdiff
path: root/libavformat/mov.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:51:36 +0200
commitb0a8521383e0f2feb63d44e2fc6e17bf607dac76 (patch)
tree977d4061404abea0dda05e8e4ad9048b5fe26ded /libavformat/mov.c
parent158a80cc0b51b652599a712c32e112ac238adce5 (diff)
avformat/mov: reset drefs_count in close
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index ffb2573ed9..d10bac5678 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);