History

lavc: Mark hw_config pointer arrays as const

They are read-only just like the HWConfig structures they point to.

Mark Thompson committed 6 years ago

Commit cd322791 parent 8fbcc5414 files · +14 −14Browse files

Showing the changes to libavcodec/vaapi_encode.c (1 of 14 files). Show all

Unified · Split

libavcodec/vaapi_encode.c+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
2828 #include "encode.h"
2929 #include "avcodec.h"
3030
31−const AVCodecHWConfigInternal *ff_vaapi_encode_hw_configs[] = {
31+const AVCodecHWConfigInternal *const ff_vaapi_encode_hw_configs[] = {
3232 HW_CONFIG_ENCODER_FRAMES(VAAPI, VAAPI),
3333 NULL,
3434 };

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