aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-12-21 09:30:38 -0300
committerJames Almer <jamrial@gmail.com>2023-12-21 10:31:02 -0300
commit4ea6121f18d7ad1bec9679a9e7a3d853c8e055d6 (patch)
treef56978c7d3496a80304cf9ec13970efe9e4c5776
parent4d78a9ac1488b1a5f0ac7b3471ce7dab266872cd (diff)
downloadffmpeg-4ea6121f18d7ad1bec9679a9e7a3d853c8e055d6.tar.gz
avutil/hwcontext_d3d12va: fix indentation in d3d12va_transfer_data()
Removes -Wmisleading-indentation warnings. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavutil/hwcontext_d3d12va.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/libavutil/hwcontext_d3d12va.c b/libavutil/hwcontext_d3d12va.c
index cc50d2a5fa..80d27ef2cd 100644
--- a/libavutil/hwcontext_d3d12va.c
+++ b/libavutil/hwcontext_d3d12va.c
@@ -401,35 +401,35 @@ static int d3d12va_transfer_data(AVHWFramesContext *ctx, AVFrame *dst,
linesizes[i] = FFALIGN(frame->width * (frames_hwctx->format == DXGI_FORMAT_P010 ? 2 : 1),
D3D12_TEXTURE_DATA_PITCH_ALIGNMENT);
- staging_y_location = (D3D12_TEXTURE_COPY_LOCATION) {
- .Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT,
- .PlacedFootprint = {
- .Offset = 0,
- .Footprint = {
- .Format = frames_hwctx->format == DXGI_FORMAT_P010 ?
- DXGI_FORMAT_R16_UNORM : DXGI_FORMAT_R8_UNORM,
- .Width = ctx->width,
- .Height = ctx->height,
- .Depth = 1,
- .RowPitch = linesizes[0],
- },
+ staging_y_location = (D3D12_TEXTURE_COPY_LOCATION) {
+ .Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT,
+ .PlacedFootprint = {
+ .Offset = 0,
+ .Footprint = {
+ .Format = frames_hwctx->format == DXGI_FORMAT_P010 ?
+ DXGI_FORMAT_R16_UNORM : DXGI_FORMAT_R8_UNORM,
+ .Width = ctx->width,
+ .Height = ctx->height,
+ .Depth = 1,
+ .RowPitch = linesizes[0],
},
- };
-
- staging_uv_location = (D3D12_TEXTURE_COPY_LOCATION) {
- .Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT,
- .PlacedFootprint = {
- .Offset = s->luma_component_size,
- .Footprint = {
- .Format = frames_hwctx->format == DXGI_FORMAT_P010 ?
- DXGI_FORMAT_R16G16_UNORM : DXGI_FORMAT_R8G8_UNORM,
- .Width = ctx->width >> 1,
- .Height = ctx->height >> 1,
- .Depth = 1,
- .RowPitch = linesizes[0],
- },
+ },
+ };
+
+ staging_uv_location = (D3D12_TEXTURE_COPY_LOCATION) {
+ .Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT,
+ .PlacedFootprint = {
+ .Offset = s->luma_component_size,
+ .Footprint = {
+ .Format = frames_hwctx->format == DXGI_FORMAT_P010 ?
+ DXGI_FORMAT_R16G16_UNORM : DXGI_FORMAT_R8G8_UNORM,
+ .Width = ctx->width >> 1,
+ .Height = ctx->height >> 1,
+ .Depth = 1,
+ .RowPitch = linesizes[0],
},
- };
+ },
+ };
DX_CHECK(ID3D12CommandAllocator_Reset(s->command_allocator));