diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-04-24 02:51:28 +0200 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2023-04-24 13:16:55 +0200 |
commit | 4fd0a39fc8aad3fb8d7bb8ed2b2918e1e0e7a53b (patch) | |
tree | cb031595adb52df2df85898ae104a0761f41f4e2 /video/out | |
parent | 71f9e97fc071ba3b6e6c1e092ed5e4c6768412a3 (diff) | |
download | mpv-4fd0a39fc8aad3fb8d7bb8ed2b2918e1e0e7a53b.tar.bz2 mpv-4fd0a39fc8aad3fb8d7bb8ed2b2918e1e0e7a53b.tar.xz |
vo_gpu_next: fixes to allow using dllimport
Address of variables can't be used for constant initialization in C
language modes.
See https://github.com/llvm/llvm-project/commit/0c43d8077e605ab78d85180f0dcaa4df1ae37607
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo_gpu_next.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 2539dc57e4..fbee007cc8 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -1462,7 +1462,7 @@ err_out: static const struct pl_filter_config *map_scaler(struct priv *p, enum scaler_unit unit) { - static const struct pl_filter_preset fixed_scalers[] = { + const struct pl_filter_preset fixed_scalers[] = { { "bilinear", &pl_filter_bilinear }, { "bicubic_fast", &pl_filter_bicubic }, { "nearest", &pl_filter_nearest }, @@ -1470,7 +1470,7 @@ static const struct pl_filter_config *map_scaler(struct priv *p, {0}, }; - static const struct pl_filter_preset fixed_frame_mixers[] = { + const struct pl_filter_preset fixed_frame_mixers[] = { { "linear", &pl_filter_bilinear }, { "oversample", &pl_filter_oversample }, {0}, @@ -1812,7 +1812,7 @@ static void update_render_options(struct vo *vo) p->peak_detect.scene_threshold_low = opts->tone_map.scene_threshold_low; p->peak_detect.scene_threshold_high = opts->tone_map.scene_threshold_high; - static const struct pl_tone_map_function * const tone_map_funs[] = { + const struct pl_tone_map_function * const tone_map_funs[] = { [TONE_MAPPING_AUTO] = &pl_tone_map_auto, [TONE_MAPPING_CLIP] = &pl_tone_map_clip, [TONE_MAPPING_MOBIUS] = &pl_tone_map_mobius, |