diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-10-31 13:32:55 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-12-06 20:30:58 +0100 |
commit | 9640ed3da01d961a3660a49800c5478a82e6454d (patch) | |
tree | 8826f1acf110f633ebdc01d4ad196a72c2e0f304 | |
parent | ce61019eb197afaf19357efbe2c27e4e4e0e8e1d (diff) | |
download | ffmpeg-9640ed3da01d961a3660a49800c5478a82e6454d.tar.gz |
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>
-rw-r--r-- | libavformat/mxfdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 5abb76d0b9..12bdbdf44f 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -3104,6 +3104,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); |