Browse Source

avformat/mxfdec: Clear metadata_sets_count in mxf_read_close()

This avoids problems if the function is called twice

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.3
Michael Niedermayer 6 years ago
parent
commit
13816a1d08
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/mxfdec.c

+ 1
- 0
libavformat/mxfdec.c View File

@@ -3583,6 +3583,7 @@ static int mxf_read_close(AVFormatContext *s)
for (i = 0; i < mxf->metadata_sets_count; i++) {
mxf_free_metadataset(mxf->metadata_sets + i, 1);
}
mxf->metadata_sets_count = 0;
av_freep(&mxf->partitions);
av_freep(&mxf->metadata_sets);
av_freep(&mxf->aesc);


Loading…
Cancel
Save