Check and Fix some issue#1535

Check and Fix some issue 1535
review at: 
https://github.com/cisco/openh264/issues/1535