fix grey picture when resolution is the same

review at: 
https://rbcommons.com/s/OpenH264/r/964