fix h264 simulation bug