Adjust some functions in H264VideoStream.java