Browse Source

avformat/mov: reset drefs_count in close

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Schenk, Michael Michael Niedermayer 12 years ago
parent
commit
b0a8521383
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/mov.c

+ 3
- 0
libavformat/mov.c 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);



Loading…
Cancel
Save