refine-multi-layer-process

simplify the multi-layer-process code.   

Review: 
https://rbcommons.com/s/OpenH264/r/141/