mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-07 22:00:00 +00: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:
parent
f80addbb07
commit
e0845ec2cf
1 changed files with 4 additions and 1 deletions
|
|
@ -7867,8 +7867,11 @@ static int mov_init_iamf_track(AVFormatContext *s)
|
||||||
default:
|
default:
|
||||||
av_assert0(0);
|
av_assert0(0);
|
||||||
}
|
}
|
||||||
if (ret < 0)
|
if (ret < 0) {
|
||||||
|
ff_iamf_uninit_context(iamf);
|
||||||
|
av_free(iamf);
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
track = &mov->tracks[first_iamf_idx];
|
track = &mov->tracks[first_iamf_idx];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue