Fix integer overflow warnings in h264.h