1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

avformat/mov: reset drefs_count in close

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Schenk, Michael
2014-04-07 14:48:13 +02:00
committed by Michael Niedermayer
parent 158a80cc0b
commit b0a8521383

View File

@@ -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);