Commit b0a85213 authored by Schenk, Michael's avatar Schenk, Michael Committed by Michael Niedermayer

avformat/mov: reset drefs_count in close

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 158a80cc
...@@ -3348,6 +3348,9 @@ static int mov_read_close(AVFormatContext *s) ...@@ -3348,6 +3348,9 @@ static int mov_read_close(AVFormatContext *s)
av_freep(&sc->drefs[j].dir); av_freep(&sc->drefs[j].dir);
} }
av_freep(&sc->drefs); av_freep(&sc->drefs);
sc->drefs_count = 0;
if (!sc->pb_is_copied) if (!sc->pb_is_copied)
avio_close(sc->pb); avio_close(sc->pb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment