Skip to content
Snippets Groups Projects
Commit 3ae2cbf2 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

d3d11_scaler: don't use designated initializers in C++

This is only available in C++20 and we use C++14.
parent e2c989a5
No related branches found
No related tags found
1 merge request!3623d3d11_scaler: don't use designated initializers in C++
Pipeline #339304 passed with stage
in 15 minutes and 6 seconds
......@@ -152,16 +152,14 @@ int D3D11_UpscalerUpdate(vlc_object_t *vd, d3d11_scaler *scaleProc, d3d11_device
D3D11_VIDEO_PROCESSOR_CONTENT_DESC processorDesc{};
processorDesc.InputFrameFormat = D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE;
processorDesc.InputFrameRate = {
.Numerator = fmt->i_frame_rate,
.Denominator = fmt->i_frame_rate_base,
fmt->i_frame_rate, fmt->i_frame_rate_base,
};
processorDesc.InputWidth = fmt->i_width;
processorDesc.InputHeight = fmt->i_height;
processorDesc.OutputWidth = out_width;
processorDesc.OutputHeight = out_height;
processorDesc.OutputFrameRate = {
.Numerator = fmt->i_frame_rate,
.Denominator = fmt->i_frame_rate_base,
fmt->i_frame_rate, fmt->i_frame_rate_base,
};
processorDesc.Usage = D3D11_VIDEO_USAGE_PLAYBACK_NORMAL;
hr = scaleProc->d3dviddev->CreateVideoProcessorEnumerator(&processorDesc, &scaleProc->enumerator);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment