put EC before output

see:
https://rbcommons.com/s/OpenH264/r/512/