mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
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>
This commit is contained in:
parent
ce61019eb1
commit
9640ed3da0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user