| Index: webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc
 | 
| diff --git a/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc b/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc
 | 
| index 6012f073cadad3ac82e1930d29a6e6adb485977c..5332a3c2e0a53fee653bacfd38f3908a6057a5a9 100644
 | 
| --- a/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc
 | 
| +++ b/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc
 | 
| @@ -95,7 +95,7 @@ static void RtpFragmentize(EncodedImage* encoded_image,
 | 
|      for (int nal = 0; nal < layerInfo.iNalCount; ++nal, ++fragments_count) {
 | 
|        RTC_CHECK_GE(layerInfo.pNalLengthInByte[nal], 0);
 | 
|        // Ensure |required_size| will not overflow.
 | 
| -      RTC_CHECK_LE(static_cast<size_t>(layerInfo.pNalLengthInByte[nal]),
 | 
| +      RTC_CHECK_LE(layerInfo.pNalLengthInByte[nal],
 | 
|                     std::numeric_limits<size_t>::max() - required_size);
 | 
|        required_size += layerInfo.pNalLengthInByte[nal];
 | 
|      }
 | 
| @@ -326,7 +326,7 @@ int32_t H264EncoderImpl::Encode(const VideoFrame& input_frame,
 | 
|    bool force_key_frame = false;
 | 
|    if (frame_types != nullptr) {
 | 
|      // We only support a single stream.
 | 
| -    RTC_DCHECK_EQ(frame_types->size(), static_cast<size_t>(1));
 | 
| +    RTC_DCHECK_EQ(frame_types->size(), 1);
 | 
|      // Skip frame?
 | 
|      if ((*frame_types)[0] == kEmptyFrame) {
 | 
|        return WEBRTC_VIDEO_CODEC_OK;
 | 
| 
 |