weightp: avoid MSVC warnings about implicit bool to int casts
dct: disable assertion for 10bit builds

The assertion is there to protect 8bpp assembly