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
28#include "encode.h"28#include "encode.h"
29#include "avcodec.h"29#include "avcodec.h"
30 30
31const AVCodecHWConfigInternal *ff_vaapi_encode_hw_configs[] = {31const AVCodecHWConfigInternal *const ff_vaapi_encode_hw_configs[] = {
32 HW_CONFIG_ENCODER_FRAMES(VAAPI, VAAPI),32 HW_CONFIG_ENCODER_FRAMES(VAAPI, VAAPI),
33 NULL,33 NULL,
34};34};

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