History

avcodec/d3d12va_encode: fix label followed by a declaration warning

Fixes: d3d12va_encode.c: warning: label followed by a declaration is a C23 extension

Kacper Michajłow committed 1 year ago

Commit 995d3291 parent 81dcb671 file · +6 −7Browse files

Unified · Split

libavcodec/d3d12va_encode.c+6−7
@@ -973,8 +973,7 @@ rc_mode_found: · 972 unmodified lines
973973 case RC_MODE_CQP:
974974 // cqp ConfigParams will be updated in ctx->codec->configure.
975975 break;
976−
977− case RC_MODE_CBR:
976+ case RC_MODE_CBR: {
978977 D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR *cbr_ctl;
979978
980979 ctx->rc.ConfigParams.DataSize = sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR);
@@ -995,8 +994,8 @@ rc_mode_found: · 14 unmodified lines
995994
996995 ctx->rc.ConfigParams.pConfiguration_CBR = cbr_ctl;
997996 break;
998−
999− case RC_MODE_VBR:
997+ }
998+ case RC_MODE_VBR: {
1000999 D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR *vbr_ctl;
10011000
10021001 ctx->rc.ConfigParams.DataSize = sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR);
@@ -1018,8 +1017,8 @@ rc_mode_found: · 15 unmodified lines
10181017
10191018 ctx->rc.ConfigParams.pConfiguration_VBR = vbr_ctl;
10201019 break;
1021−
1022− case RC_MODE_QVBR:
1020+ }
1021+ case RC_MODE_QVBR: {
10231022 D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR *qvbr_ctl;
10241023
10251024 ctx->rc.ConfigParams.DataSize = sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR);
@@ -1039,7 +1038,7 @@ rc_mode_found: · 13 unmodified lines
10391038
10401039 ctx->rc.ConfigParams.pConfiguration_QVBR = qvbr_ctl;
10411040 break;
1042−
1041+ }
10431042 default:
10441043 break;
10451044 }

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