add EC method to freeze sequence when resolution changed and decoding IDR error

This would modify decoder API.
see:
https://rbcommons.com/s/OpenH264/r/921/