mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-17 04:20:10 +01:00
fftools/ffmpeg_mux_init: Free pts on error
Fixes: CID1538863 Resource leak Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -3025,7 +3025,7 @@ static int parse_forced_key_frames(void *log, KeyframeForceCtx *kf,
|
|||||||
if (nb_ch > INT_MAX - size ||
|
if (nb_ch > INT_MAX - size ||
|
||||||
!(pts = av_realloc_f(pts, size += nb_ch - 1,
|
!(pts = av_realloc_f(pts, size += nb_ch - 1,
|
||||||
sizeof(*pts))))
|
sizeof(*pts))))
|
||||||
return AVERROR(ENOMEM);
|
goto fail;
|
||||||
|
|
||||||
if (p[8]) {
|
if (p[8]) {
|
||||||
ret = av_parse_time(&t, p + 8, 1);
|
ret = av_parse_time(&t, p + 8, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user