forked from FFmpeg/FFmpeg
avformat/iamf_parse: add missing av_free() call on failure path
Fixes ticket #11416 Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
b88fc4e098
commit
d5873be583
1 changed files with 1 additions and 0 deletions
|
@ -570,6 +570,7 @@ static int param_parse(void *s, IAMFContext *c, AVIOContext *pb,
|
|||
|
||||
if (!mode && !constant_subblock_duration && total_duration != duration) {
|
||||
av_log(s, AV_LOG_ERROR, "Invalid subblock durations in parameter_id %u\n", parameter_id);
|
||||
av_free(param);
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue