Skip to content

visibleRect validation for VideoFrame{Buffer}Init seems wrong #515

Closed

Description

@ChunMinChang

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

  1. sandersdan commented on Jul 25, 2022

    @sandersdan
    Contributor

    Sounds correct to me; the inequality should be strict.

    Probably an editing error swapping from <= valid to > invalid.

  2. added a commit that references this issue on Aug 29, 2022
    24a7d8c
  3. added a commit that references this issue on Aug 31, 2022
    814b6c5
  4. added a commit that references this issue on Jul 16, 2023
    d360e09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions