Skip to content

AudioDecoderConfig.numberOfChannels and AudioDecoderConfig.sampleRate should be explicitly forbidden to be 0 #878

@jyavenard

Description

@jyavenard

Similar to #860

Currently the specs only consider an AudioDecoderConfig as invalid if

1. If codec is empty after stripping leading and trailing ASCII whitespace, return false.
2. If description is [detached], return false.
3. Return true.

It should be:

1. If codec is empty after stripping leading and trailing ASCII whitespace, return false.
2. If description is [detached], return false.
3. If sampleRate or numberOfChannels are equal to zero, return false.
4. Return true.

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