Fix the VideoFrameType of super frame construction in VideoProcessor
When VideoFrameType for svc upper layer is kVideoFrameDelta for key pic, the svc unittest will fail due to the wrong frame type for the super frame of first key picture. Bug: None Change-Id: Iff026aaecb73890d3c45d2c88c9654a12d6fe3bf Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/216461 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Zhaoliang Ma <zhaoliang.ma@intel.com> Cr-Commit-Position: refs/heads/master@{#33986}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
162696fdbd
commit
074edf6016
@ -650,6 +650,8 @@ const webrtc::EncodedImage* VideoProcessor::BuildAndStoreSuperframe(
|
||||
|
||||
EncodedImage copied_image = encoded_image;
|
||||
copied_image.SetEncodedData(buffer);
|
||||
if (base_image.size())
|
||||
copied_image._frameType = base_image._frameType;
|
||||
|
||||
// Replace previous EncodedImage for this spatial layer.
|
||||
merged_encoded_frames_.at(spatial_idx) = std::move(copied_image);
|
||||
|
||||
Reference in New Issue
Block a user