mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
avfilter/vf_hwupload_cuda: fix potential leak
This commit is contained in:
parent
52773a2c68
commit
7dafb3a25a
@ -64,12 +64,14 @@ static int cudaupload_query_formats(AVFilterContext *ctx)
|
||||
AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE,
|
||||
};
|
||||
AVFilterFormats *in_fmts = ff_make_format_list(input_pix_fmts);
|
||||
AVFilterFormats *out_fmts = ff_make_format_list(output_pix_fmts);
|
||||
AVFilterFormats *out_fmts;
|
||||
|
||||
ret = ff_formats_ref(in_fmts, &ctx->inputs[0]->out_formats);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
out_fmts = ff_make_format_list(output_pix_fmts);
|
||||
|
||||
ret = ff_formats_ref(out_fmts, &ctx->outputs[0]->in_formats);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user