[Encoder] fix a potential problem of trace

https://rbcommons.com/s/OpenH264/r/1009/