fix when output enabled in encoder

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