avformat/concatdec: Use FAIL() macro instead of direct return in concat_parse_script()

Fixes: memleak
Fixes: 38893/clusterfuzz-testcase-minimized-ffmpeg_dem_CONCAT_fuzzer-4785231933079552

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2021-09-22 00:01:00 +02:00
parent a487635b85
commit 0b761e87c0
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ static int concat_parse_script(AVFormatContext *avf)
chapter = avpriv_new_chapter(avf, arg_int[0], AV_TIME_BASE_Q,
arg_int[1], arg_int[2], NULL);
if (!chapter)
return AVERROR(ENOMEM);
FAIL(ENOMEM);
break;
default: