h264: stricter reference limit enforcement.