Skip to content

Spec errors for VideoFrame sizing exceeding implementation max #339

@chcunningham

Description

@chcunningham

Presently Chrome has checks in VideoFrame creation paths like this

  if (coded_width > media::limits::kMaxDimension ||
      coded_height > media::limits::kMaxDimension ||
      coded_width * coded_height > media::limits::kMaxCanvas) {
    exception_state.ThrowTypeError(
        String::Format("Coded size %u x %u exceeds implementation limit.",
                       coded_width, coded_height));
    return nullptr;
  }

This isn't spec'ed. Its not a huge deal, as the limits are large enough that probably no one is hitting them yet, but we should spec it.

Open question whether the exact cutoff should be an impl detail vs some standardized number. @sandersdan @dalecurtis do you recall the origin of the current limits?

Metadata

Metadata

Assignees

No one assigned

    Labels

    editorialchanges to wording, grammar, etc that don't modify the intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions