fix h264 encoding