Index: webrtc/modules/video_coding/codecs/h264/h264.cc |
diff --git a/webrtc/modules/video_coding/codecs/h264/h264.cc b/webrtc/modules/video_coding/codecs/h264/h264.cc |
index 1c0fc705ae4d55b05dd61bf3e195032af86771c6..bf82e530d09c200eb3f6eb374d385a38eac241cd 100644 |
--- a/webrtc/modules/video_coding/codecs/h264/h264.cc |
+++ b/webrtc/modules/video_coding/codecs/h264/h264.cc |
@@ -60,7 +60,7 @@ bool IsH264CodecSupported() { |
#endif |
} |
-H264Encoder* H264Encoder::Create() { |
+H264Encoder* H264Encoder::Create(const cricket::VideoCodec& codec) { |
RTC_DCHECK(H264Encoder::IsSupported()); |
#if defined(WEBRTC_IOS) && defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED) |
if (IsH264CodecSupportedObjC()) { |
@@ -71,7 +71,7 @@ H264Encoder* H264Encoder::Create() { |
#if defined(WEBRTC_USE_H264) |
RTC_CHECK(g_rtc_use_h264); |
LOG(LS_INFO) << "Creating H264EncoderImpl."; |
- return new H264EncoderImpl(); |
+ return new H264EncoderImpl(codec); |
#else |
RTC_NOTREACHED(); |
return nullptr; |