aboutsummaryrefslogtreecommitdiff
path: root/libavformat/mxfdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer2019-10-31 13:32:55 +0100
committerMichael Niedermayer2019-12-31 19:51:56 +0100
commit3266d05538f3573a5aa7eddbbe8663c78e66f6af (patch)
treec85d32cdcc957b50d2a2bdcd4429ed745ca5fe60 /libavformat/mxfdec.c
parentb02b306f73cfd36f78892982ead80157d52e6c19 (diff)
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> (cherry picked from commit 13816a1d085fdb6598ea6dc92ed3a1e6aff0cc1f) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/mxfdec.c')
-rw-r--r--libavformat/mxfdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 397f820b3f..9c4d036043 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -3581,6 +3581,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);