add decoder syntax checks
Merge pull request #298 from licaiguo/decoder-syntax-element-step1

add decoder syntax checks