Index: webrtc/modules/video_coding/main/source/frame_buffer.cc |
diff --git a/webrtc/modules/video_coding/main/source/frame_buffer.cc b/webrtc/modules/video_coding/main/source/frame_buffer.cc |
index 192febe2a639ae42029d5f3663a8f854a0f0e247..3e4e762b2cad2d6c39346a9e9d9544ef388b0dd3 100644 |
--- a/webrtc/modules/video_coding/main/source/frame_buffer.cc |
+++ b/webrtc/modules/video_coding/main/source/frame_buffer.cc |
@@ -75,6 +75,15 @@ bool VCMFrameBuffer::NonReference() const { |
return _sessionInfo.NonReference(); |
} |
+void VCMFrameBuffer::SetGofInfo(const GofInfoVP9& gof_info, size_t idx) { |
+ _sessionInfo.SetGofInfo(gof_info, idx); |
+ // TODO(asapersson): Consider adding hdr->VP9.ref_picture_id for testing. |
+ _codecSpecificInfo.codecSpecific.VP9.temporal_idx = |
+ gof_info.temporal_idx[idx]; |
+ _codecSpecificInfo.codecSpecific.VP9.temporal_up_switch = |
+ gof_info.temporal_up_switch[idx]; |
+} |
+ |
bool |
VCMFrameBuffer::IsSessionComplete() const { |
return _sessionInfo.complete(); |