Index: webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.cc |
diff --git a/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.cc b/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.cc |
index 22ace500ffaf8b14447d662fa97e45a27514e2f6..d677f8b812fa771fd8385d7df4d86cd1a2dd99f2 100644 |
--- a/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.cc |
+++ b/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.cc |
@@ -198,7 +198,8 @@ void VTCompressionOutputCallback(void* encoder, |
frame._encodedWidth = encode_params->width; |
frame._encodedHeight = encode_params->height; |
frame._completeFrame = true; |
- frame._frameType = is_keyframe ? webrtc::kKeyFrame : webrtc::kDeltaFrame; |
+ frame._frameType = |
+ is_keyframe ? webrtc::kVideoFrameKey : webrtc::kVideoFrameDelta; |
frame.capture_time_ms_ = encode_params->render_time_ms; |
frame._timeStamp = encode_params->timestamp; |
@@ -277,7 +278,7 @@ int H264VideoToolboxEncoder::Encode( |
bool is_keyframe_required = false; |
if (frame_types) { |
for (auto frame_type : *frame_types) { |
- if (frame_type == kKeyFrame) { |
+ if (frame_type == kVideoFrameKey) { |
is_keyframe_required = true; |
break; |
} |