[FFmpeg-cvslog] avformat/mxfdec: Clear metadata_sets_count in mxf_read_close()
Michael Niedermayer
git at videolan.org
Sun Dec 1 18:19:50 EET 2019
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Oct 31 13:32:55 2019 +0100| [13816a1d085fdb6598ea6dc92ed3a1e6aff0cc1f] | committer: Michael Niedermayer
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 at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=13816a1d085fdb6598ea6dc92ed3a1e6aff0cc1f
---
libavformat/mxfdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index bcee234ad7..9a48e2d2d1 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list