mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-05 14:30:00 +01:00
avformat/movenc: Fix leak of IAMFContext on error
Forgotten in 5b87869c09.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
committed by
James Almer
parent
f80addbb07
commit
e0845ec2cf
@@ -7867,8 +7867,11 @@ static int mov_init_iamf_track(AVFormatContext *s)
|
||||
default:
|
||||
av_assert0(0);
|
||||
}
|
||||
if (ret < 0)
|
||||
if (ret < 0) {
|
||||
ff_iamf_uninit_context(iamf);
|
||||
av_free(iamf);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
track = &mov->tracks[first_iamf_idx];
|
||||
|
||||
Reference in New Issue
Block a user