Index: webrtc/video/vie_encoder.cc |
diff --git a/webrtc/video/vie_encoder.cc b/webrtc/video/vie_encoder.cc |
index aa93886bc38b6d14a335fb632f8fa90250d4df69..2c9c6799e8c4456e5bfd7e8ca1dfc2e4acbe5e64 100644 |
--- a/webrtc/video/vie_encoder.cc |
+++ b/webrtc/video/vie_encoder.cc |
@@ -528,19 +528,15 @@ void ViEEncoder::EncodeVideoFrame(const VideoFrame& video_frame, |
webrtc::CodecSpecificInfo codec_specific_info; |
codec_specific_info.codecType = webrtc::kVideoCodecVP8; |
- codec_specific_info.codecSpecific.VP8.hasReceivedRPSI = |
- has_received_rpsi_; |
- codec_specific_info.codecSpecific.VP8.hasReceivedSLI = |
- has_received_sli_; |
- codec_specific_info.codecSpecific.VP8.pictureIdRPSI = |
- picture_id_rpsi_; |
- codec_specific_info.codecSpecific.VP8.pictureIdSLI = |
- picture_id_sli_; |
- has_received_sli_ = false; |
- has_received_rpsi_ = false; |
- |
- video_sender_.AddVideoFrame(video_frame, &codec_specific_info); |
- return; |
+ codec_specific_info.codecSpecific.VP8.hasReceivedRPSI = has_received_rpsi_; |
+ codec_specific_info.codecSpecific.VP8.hasReceivedSLI = has_received_sli_; |
+ codec_specific_info.codecSpecific.VP8.pictureIdRPSI = picture_id_rpsi_; |
+ codec_specific_info.codecSpecific.VP8.pictureIdSLI = picture_id_sli_; |
+ has_received_sli_ = false; |
+ has_received_rpsi_ = false; |
+ |
+ video_sender_.AddVideoFrame(video_frame, &codec_specific_info); |
+ return; |
} |
video_sender_.AddVideoFrame(video_frame, nullptr); |
} |