[Vorbis-dev] Getting samples in a packet without decoding

Brendan Bolles brendan at fnordware.com
Tue Aug 5 17:24:09 PDT 2014


Hi everyone, when you have a vorbis packet and then call vorbis_synthesis(), vorbis_synthesis_blockin(), and finally vorbis_synthesis_pcmout(), that last call tells you how many samples are in the packet.  Is there any way to get that information without actually decoding the packet?


WebM doesn't store the sample index (granulepos) like Ogg does, so I have to scan through the audio and re-build that information if I want to do sample-accurate seeking.


Brendan



More information about the Vorbis-dev mailing list