You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02: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:
@ -1218,7 +1218,7 @@ static int parse_feedback_units(AVCodecContext *avctx,
|
|||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Unable to parse feedback units, bad drivers: %s\n",
|
av_log(avctx, AV_LOG_ERROR, "Unable to parse feedback units, bad drivers: %s\n",
|
||||||
av_err2str(err));
|
av_err2str(err));
|
||||||
return err;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sps_override) {
|
if (sps_override) {
|
||||||
@ -1246,10 +1246,12 @@ static int parse_feedback_units(AVCodecContext *avctx,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = 0;
|
||||||
|
fail:
|
||||||
ff_cbs_fragment_free(&au);
|
ff_cbs_fragment_free(&au);
|
||||||
ff_cbs_close(&cbs);
|
ff_cbs_close(&cbs);
|
||||||
|
|
||||||
return 0;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int init_base_units(AVCodecContext *avctx)
|
static int init_base_units(AVCodecContext *avctx)
|
||||||
|
Reference in New Issue
Block a user