[MPlayer-dev-eng] Seeking in demux_ogg

Moritz Bunkus moritz at bunkus.org
Fri Nov 11 17:36:20 CET 2005


Hey,

mplayer's Ogg/OGM demuxer first calculates the approximate file position
to seek to. Then it calls ogg_sync_pageseek() (it lets libogg find the
next Ogg page in the stream). Now it tries to find the next page for the
wanted stream. Afterwards it may try another seek operation if the first
guess was not precise enough. I'd put some informational printfs in this
code (it's around line 1520 at the end of demux_ogg_seek()).

Another problem could be that the "sync frame" flag is used differently
for that PCM stuff. In OGM it is used as the key frame flag, and the
"is_keyframe" variable in demux_ogg_seek() is indeed set if the "sync
flag" is set in the Ogg page header. You might want to investigate this,
too.

Mosu

-- 
If Darl McBride was in charge, he'd probably make marriage
unconstitutional too, since clearly it de-emphasizes the commercial
nature of normal human interaction, and probably is a major impediment
to the commercial growth of prostitution. - Linus Torvalds


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20051111/78f67ced/attachment.pgp>


More information about the MPlayer-dev-eng mailing list