check the number of spatial layer for screen content
check resolution configure
Merge pull request #985 from ruil2/encoder_check

input parameters validation