mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-12 04:59:59 +00:00
avcodec/vulkan_encode_hevc: Fix memleak on error
Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
70fa44dfa8
commit
d794ecd9d2
1 changed files with 4 additions and 2 deletions
|
|
@ -1218,7 +1218,7 @@ static int parse_feedback_units(AVCodecContext *avctx,
|
|||
if (err < 0) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Unable to parse feedback units, bad drivers: %s\n",
|
||||
av_err2str(err));
|
||||
return err;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (sps_override) {
|
||||
|
|
@ -1246,10 +1246,12 @@ static int parse_feedback_units(AVCodecContext *avctx,
|
|||
}
|
||||
}
|
||||
|
||||
err = 0;
|
||||
fail:
|
||||
ff_cbs_fragment_free(&au);
|
||||
ff_cbs_close(&cbs);
|
||||
|
||||
return 0;
|
||||
return err;
|
||||
}
|
||||
|
||||
static int init_base_units(AVCodecContext *avctx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue