Is the frameSize returned by aacDecoder_GetStreamInfo() constant?
dv1 opened this issue · comments
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.
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.