Commit 5cfbafea authored by Martin Storsjö's avatar Martin Storsjö Committed by Marvin Scholz
Browse files

meson: Define CONFIG_xBPC to 0 for the bitdepths that aren't enabled

This fixes warnings like these, if not all bitdepths are enabled:

../src/decode.c: In function ‘dav1d_submit_frame’:
../src/decode.c:2825:5: warning: "CONFIG_10BPC" is not defined [-Wundef]
parent 227b7eae
Pipeline #1133 passed with stage
in 2 minutes and 31 seconds
......@@ -54,8 +54,8 @@ dav1d_inc_dirs = include_directories(['.', 'include', 'include/dav1d'])
# Bitdepth option
dav1d_bitdepths = get_option('bitdepths')
foreach bitdepth : dav1d_bitdepths
cdata.set('CONFIG_@0@BPC'.format(bitdepth), 1)
foreach bitdepth : ['8', '10']
cdata.set10('CONFIG_@0@BPC'.format(bitdepth), dav1d_bitdepths.contains(bitdepth))
# ASM option
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment