Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Unified Diff: webrtc/video/video_receive_stream.cc

Issue 2649873005: Call RtpStreamReceiver.AddReceiveCodec() with codec_params. (Closed)
Patch Set: Call RtpStreamReceiver.AddReceiveCodec() with codec_params. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/video/rtp_stream_receiver.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/video_receive_stream.cc
diff --git a/webrtc/video/video_receive_stream.cc b/webrtc/video/video_receive_stream.cc
index 174d35256493ce4d166c6e20c59c0ab40eae629c..886027363c08377f11e86e716e1d307d76ac9df9 100644
--- a/webrtc/video/video_receive_stream.cc
+++ b/webrtc/video/video_receive_stream.cc
@@ -313,10 +313,9 @@ void VideoReceiveStream::Start() {
for (const Decoder& decoder : config_.decoders) {
video_receiver_.RegisterExternalDecoder(decoder.decoder,
decoder.payload_type);
- // TODO(johan): make Decoder.codec_params accessible for RtpStreamReceiver
- // which holds H264SpsPpsTracker
VideoCodec codec = CreateDecoderVideoCodec(decoder);
- RTC_CHECK(rtp_stream_receiver_.AddReceiveCodec(codec));
+ RTC_CHECK(
+ rtp_stream_receiver_.AddReceiveCodec(codec, decoder.codec_params));
RTC_CHECK_EQ(VCM_OK, video_receiver_.RegisterReceiveCodec(
&codec, num_cpu_cores_, false));
}
« no previous file with comments | « webrtc/video/rtp_stream_receiver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698