Index: webrtc/sdk/objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm |
diff --git a/webrtc/sdk/objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm b/webrtc/sdk/objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm |
index 3b1eb0571b3df8786989720c1033eb2ba55859bf..6fcc42296eaac39673f73a42b3c5d7714fbd7aac 100644 |
--- a/webrtc/sdk/objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm |
+++ b/webrtc/sdk/objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm |
@@ -15,6 +15,7 @@ |
#import "WebRTC/RTCVideoCodec.h" |
#import "WebRTC/RTCVideoCodecFactory.h" |
+#include "webrtc/media/base/codec.h" |
#include "webrtc/modules/include/module_common_types.h" |
#include "webrtc/modules/video_coding/include/video_codec_interface.h" |
#include "webrtc/modules/video_coding/include/video_error_codes.h" |
@@ -49,7 +50,8 @@ id<RTCVideoDecoderFactory> CreateErrorDecoderFactory() { |
webrtc::VideoDecoder *GetObjCDecoder(id<RTCVideoDecoderFactory> factory) { |
webrtc::ObjCVideoDecoderFactory decoder_factory(factory); |
- return decoder_factory.CreateVideoDecoder(webrtc::kVideoCodecH264); |
+ return decoder_factory.CreateVideoDecoderWithParams(cricket::VideoCodec(cricket::kH264CodecName), |
+ {}); |
} |
#pragma mark - |