Skip to content

AAC validation fails for 96kHz sample rate #12

@yyyar

Description

@yyyar

The error is: 'invalid sample-rate 0x0' when v.SampleRate == 0 (SampleRateIndex96kHz)

Seems the problem is here:

if v.SampleRate < SampleRateIndex88kHz || v.SampleRate > SampleRateIndex7kHz {
    return errors.Errorf("invalid sample-rate %#x", uint8(v.SampleRate))
}

This condition does not include 'SampleRateIndex96kHz', is there any reason for this?
Seems 96kHz should be a valid sample rate and pass the validation.

Thank you!

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