You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
visibleRect validation for VideoFrame{Buffer}Init seems wrong #515
Validate VideoFrameInit and Validate VideoFrameBufferInit return false when visibleRect.y + visibleRect.height >= codedHeight in step 1-5 and step 3 respectively, or visibleRect.x + visibleRect.width >= codedWidth in step 1-6 and step 4 respectively, while Parse Visible Rect returns false when overrideRect.y + overrideRect.height > codedHeight or overrideRect.x + overrideRect.width > codedWidth. Shouldn’t Validate VideoFrameInit and Validate VideoFrameBufferInit return false in the “>” case instead of “>=”? A VideoFrame{Buffer}Init value with a visibleRect whose (x, y, width, height) = (0, 0, 2, 2), codedWidth=2 and codedHeight=2 seems valid.
Activity
sandersdan commentedon Jul 25, 2022
Sounds correct to me; the inequality should be strict.
Probably an editing error swapping from
<=valid to>invalid.Fix visible rect comparison to use strict equality to allow for visib…
Fix visible rect comparison to use strict equality to allow for visib…
Sync (#1)