[ogg-dev] Ogg slow _os_body_expand

Poskryakov Dmitry balmer at kranx.com
Fri Oct 31 02:30:39 PDT 2008


Hello.

I use ogg to play video with theora/vorbis bitstream.

But if have high bitrate 10-15 megabit/sec is problem.
Distance between audio and video data put together 4-5 megabytes.

New data accomulate in ogg_stream_state use ogg_stream_pagein.

ogg_stream_state.body_storage come to 4-5 megabytes

_os_body_expand is very slow.
Problem is in string:
os->body_storage+=(needed+1024);

all time spent in _ogg_realloc.

What is my mistake?

PS: I use latest version (libogg-1.1.3)

-- 
Poskryakov Dmitry Balmer
Programmer
KranX Productions 



More information about the ogg-dev mailing list