Handle per-layer frame drops.
Pass base layer frame to upper layer decoder if inter-layer prediction is enabled and encoder dropped upper layer. Bug: none Change-Id: I4d13790caabd6469fc0260d8c0ddcb3dabbfb86e Reviewed-on: https://webrtc-review.googlesource.com/65980 Commit-Queue: Sergey Silkin <ssilkin@webrtc.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22762}
This commit is contained in:
committed by
Commit Bot
parent
d1f7eb6e83
commit
645e2e0a29
@ -293,8 +293,9 @@ VideoStatistics Stats::SliceAndCalcVideoStatistic(
|
||||
if (frame_stat.decoding_successful) {
|
||||
++video_stat.num_decoded_frames;
|
||||
|
||||
video_stat.width = frame_stat.decoded_width;
|
||||
video_stat.height = frame_stat.decoded_height;
|
||||
video_stat.width = std::max(video_stat.width, frame_stat.decoded_width);
|
||||
video_stat.height =
|
||||
std::max(video_stat.height, frame_stat.decoded_height);
|
||||
|
||||
psnr_y.AddSample(frame_stat.psnr_y);
|
||||
psnr_u.AddSample(frame_stat.psnr_u);
|
||||
|
||||
Reference in New Issue
Block a user