add decoder syntax checks

The review is at https://rbcommons.com/s/OpenH264/r/64/