diff options
author | Schenk, Michael <Michael.Schenk@albistechnologies.com> | 2014-04-07 14:48:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-07 14:51:36 +0200 |
commit | b0a8521383e0f2feb63d44e2fc6e17bf607dac76 (patch) | |
tree | 977d4061404abea0dda05e8e4ad9048b5fe26ded | |
parent | 158a80cc0b51b652599a712c32e112ac238adce5 (diff) | |
download | ffmpeg-b0a8521383e0f2feb63d44e2fc6e17bf607dac76.tar.gz |
avformat/mov: reset drefs_count in close
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/mov.c | 3 |
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); |