Index: webrtc/video/video_receive_stream.cc |
diff --git a/webrtc/video/video_receive_stream.cc b/webrtc/video/video_receive_stream.cc |
index cc145256542903b7540b004379e55c67c93c7106..5fd79a7744792780df12adcfcb9c4ddc3b518190 100644 |
--- a/webrtc/video/video_receive_stream.cc |
+++ b/webrtc/video/video_receive_stream.cc |
@@ -19,6 +19,7 @@ |
#include "webrtc/base/checks.h" |
#include "webrtc/base/logging.h" |
#include "webrtc/base/optional.h" |
+#include "webrtc/common_video/h264/profile_level_id.h" |
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
#include "webrtc/modules/congestion_controller/include/congestion_controller.h" |
#include "webrtc/modules/utility/include/process_thread.h" |
@@ -169,6 +170,8 @@ VideoCodec CreateDecoderVideoCodec(const VideoReceiveStream::Decoder& decoder) { |
*(codec.VP9()) = VideoEncoder::GetDefaultVp9Settings(); |
} else if (codec.codecType == kVideoCodecH264) { |
*(codec.H264()) = VideoEncoder::GetDefaultH264Settings(); |
+ codec.H264()->profile = |
+ H264::ParseSdpProfileLevelId(decoder.codec_params)->profile; |
} |
codec.width = 320; |