Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How to calculate sampleTime and sampleDuration before decode (Read 7038 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to calculate sampleTime and sampleDuration before decode

I have create ogg decoder in media foundation
I have read some packte as a sample (compress data), now I need to know the sample' time and sample's duration
Now I know the AvgBytesPerSec and SamplesPerSec and so on, but this parameters are use for uncompress data
so how can get IMFSample's time and duration by use compress data ?