salsaman wrote: > I check the first positive granulepos, not the first page. So it will > always come out with the correct value. Really? What happens when the first positive granpos is for frame 2897 and says the previous keyframe was at frame 2980? Does that mean the stream starts from 0 or 1?