Commit f907eea8 authored by Mark Thompson's avatar Mark Thompson

vf_tonemap_vaapi: Fix memory leak in error case

Fixes CID 1457236.
parent f0e7ac59
......@@ -278,7 +278,7 @@ static int tonemap_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame
err = av_frame_copy_props(output_frame, input_frame);
if (err < 0)
return err;
goto fail;
if (ctx->color_primaries != AVCOL_PRI_UNSPECIFIED)
output_frame->color_primaries = ctx->color_primaries;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment