History

lavfi/vf_scale_vulkan: fix build

This was broken in d42b410e05ad1c4d6e74aa981b4a4423103291fb.

rcombs committed 4 years ago

Commit 3e580351 parent bb6d9a01 file · +2 −2Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_scale_vulkan.c+2−2
@@ -239,14 +239,14 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in) · 238 unmodified lines
239 RET(ff_vk_init_compute_pipeline(vkctx, s->pl));239 RET(ff_vk_init_compute_pipeline(vkctx, s->pl));
240 240
241 if (s->vkctx.output_format != s->vkctx.input_format) {241 if (s->vkctx.output_format != s->vkctx.input_format) {
242 const struct LumaCoefficients *lcoeffs;242 const AVLumaCoefficients *lcoeffs;
243 double tmp_mat[3][3];243 double tmp_mat[3][3];
244 244
245 struct {245 struct {
246 float yuv_matrix[4][4];246 float yuv_matrix[4][4];
247 } *par;247 } *par;
248 248
249 lcoeffs = ff_get_luma_coefficients(in->colorspace);249 lcoeffs = av_csp_luma_coeffs_from_avcsp(in->colorspace);
250 if (!lcoeffs) {250 if (!lcoeffs) {
251 av_log(ctx, AV_LOG_ERROR, "Unsupported colorspace\n");251 av_log(ctx, AV_LOG_ERROR, "Unsupported colorspace\n");
252 return AVERROR(EINVAL);252 return AVERROR(EINVAL);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t