add DPB management if frame loss happens

add safety check for picture buffer handling.
Also the check of 0x001 start code in console application, with some formatting.
review request see:
https://rbcommons.com/s/OpenH264/r/357/