diff --git a/api/video_codecs/video_encoder_factory.h b/api/video_codecs/video_encoder_factory.h index 630b7aa70c..c396090ea6 100644 --- a/api/video_codecs/video_encoder_factory.h +++ b/api/video_codecs/video_encoder_factory.h @@ -30,13 +30,13 @@ class VideoEncoderFactory { struct CodecInfo { // |is_hardware_accelerated| is true if the encoders created by this factory // of the given codec will use hardware support. - bool is_hardware_accelerated; + bool is_hardware_accelerated = false; // |has_internal_source| is true if encoders created by this factory of the // given codec will use internal camera sources, meaning that they don't // require/expect frames to be delivered via webrtc::VideoEncoder::Encode. // This flag is used as the internal_source parameter to // webrtc::ViEExternalCodec::RegisterExternalSendCodec. - bool has_internal_source; + bool has_internal_source = false; }; // An injectable class that is continuously updated with encoding conditions