Don't poll EncoderInfo from encoder twice per frame

Bug: webrtc:9890
Change-Id: Id4c2062a1c0c6be699f2096b4c0b334c98f3c4ba
Reviewed-on: https://webrtc-review.googlesource.com/c/111083
Commit-Queue: Erik Språng <sprang@webrtc.org>
Reviewed-by: Mirta Dvornicic <mirtad@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25672}
This commit is contained in:
Erik Språng
2018-11-15 17:52:43 +01:00
committed by Commit Bot
parent 645a3afcea
commit eee39206a2
5 changed files with 20 additions and 12 deletions

View File

@ -136,7 +136,7 @@ class VideoCodingModuleImpl : public VideoCodingModule {
int32_t AddVideoFrame(const VideoFrame& videoFrame,
const CodecSpecificInfo* codecSpecificInfo) override {
return sender_.AddVideoFrame(videoFrame, codecSpecificInfo);
return sender_.AddVideoFrame(videoFrame, codecSpecificInfo, absl::nullopt);
}
int32_t IntraFrameRequest(size_t stream_index) override {