mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
vf_tonemap_vaapi: Fix memory leak in error case
Fixes CID 1457236.
This commit is contained in:
parent
f0e7ac5986
commit
f907eea863
@ -278,7 +278,7 @@ static int tonemap_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame
|
|||||||
|
|
||||||
err = av_frame_copy_props(output_frame, input_frame);
|
err = av_frame_copy_props(output_frame, input_frame);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
goto fail;
|
||||||
|
|
||||||
if (ctx->color_primaries != AVCOL_PRI_UNSPECIFIED)
|
if (ctx->color_primaries != AVCOL_PRI_UNSPECIFIED)
|
||||||
output_frame->color_primaries = ctx->color_primaries;
|
output_frame->color_primaries = ctx->color_primaries;
|
||||||
|
Loading…
Reference in New Issue
Block a user