Check and Fix some issue #1535

Check and Fix some issue #1535
review at:
https://rbcommons.com/s/OpenH264/r/929/