Fixing some SIGFPEs that are making my tests crash
Bug: none Change-Id: Ib538e4f131a2c05b9b832bc8235f4f0bb35d04c0 Reviewed-on: https://webrtc-review.googlesource.com/74622 Commit-Queue: Philip Eliasson <philipel@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Reviewed-by: Philip Eliasson <philipel@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23515}
This commit is contained in:

committed by
Commit Bot

parent
3a79a9a290
commit
3ea3e300dc
@ -440,6 +440,11 @@ RtpFrameReferenceFinder::FrameDecision RtpFrameReferenceFinder::ManageFrameVp9(
|
||||
"layer frame. Scalability structure ignored.";
|
||||
} else {
|
||||
current_ss_idx_ = Add<kMaxGofSaved>(current_ss_idx_, 1);
|
||||
if (codec_header.gof.num_frames_in_gof == 0 ||
|
||||
codec_header.gof.num_frames_in_gof > kMaxVp9FramesInGof) {
|
||||
return kDrop;
|
||||
}
|
||||
|
||||
scalability_structures_[current_ss_idx_] = codec_header.gof;
|
||||
scalability_structures_[current_ss_idx_].pid_start = frame->id.picture_id;
|
||||
gof_info_.emplace(codec_header.tl0_pic_idx,
|
||||
|
Reference in New Issue
Block a user