mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-10 00:59:38 +00: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 13816a1d08
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
b02b306f73
commit
3266d05538
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user