Use BT709 or BT601 coefficients as appropriate to resolution
Fix color conversion code