diff --git a/video/video_stream_encoder.cc b/video/video_stream_encoder.cc index a5711c104a..c9bd604d05 100644 --- a/video/video_stream_encoder.cc +++ b/video/video_stream_encoder.cc @@ -2065,11 +2065,8 @@ void VideoStreamEncoder::EncodeVideoFrame(const VideoFrame& video_frame, frame_encode_metadata_writer_.OnEncodeStarted(out_frame); - if (encoder_config_.content_type != - VideoEncoderConfig::ContentType::kScreen) { - CaptureProcessingDurationMeasurement::AttachToCurrentVoucher( - out_frame.reference_time().value_or(clock_->CurrentTime())); - } + CaptureProcessingDurationMeasurement::AttachToCurrentVoucher( + out_frame.reference_time().value_or(clock_->CurrentTime())); const int32_t encode_status = encoder_->Encode(out_frame, &next_frame_types_); was_encode_called_since_last_initialization_ = true;