Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the frameSize returned by aacDecoder_GetStreamInfo() constant? #154

Open
dv1 opened this issue Mar 16, 2023 · 1 comment
Open

Is the frameSize returned by aacDecoder_GetStreamInfo() constant? #154

dv1 opened this issue Mar 16, 2023 · 1 comment

Comments

@dv1
Copy link

dv1 commented Mar 16, 2023

From looking at the code, it is not entirely clear to me if the frameSize value that is returned by aacDecoder_GetStreamInfo() is constant. I do know that AAC frames typically contain 1024 samples, and rarely 960, but I am not sure if AAC streams can switch between these two mid-stream. Can you clarify? This info is missing from the docs.

@mstorsjo
Copy link
Owner

IIRC, for an ADTS stream, you can in theory have any parameter change from frame to frame. Such streams would definitely be uncommon, but for safety etc you at least would need to validate that you get the expected value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants