Skip to content

Overcounting sample counts in ogg opus #31

@skijit

Description

@skijit

Hi,

Thanks for sharing this code.

I noticed that the opus parser produces a total sample count that is somewhat higher than what I get from decoding (using your decoding libraries or opusdec directly).

For a simple repro, see this repo.

It looks like most of the frames from the parser have 960 samples, including, conspicuously the last frame. Also, all the opus files I've tested with the parser have total sample counts divisible by 960. Perhaps the last frame is being padded?

Or maybe I'm using it wrong!

Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions