<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=ks_c_5601-1987">
<META content="MSHTML 6.00.2800.1515" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Is it possible to predict the maximum size of running memory
</FONT><FONT size=2>in tremor?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>For example, in vorbis_staticbook_unpack(),</FONT></DIV>
<DIV><FONT size=2>s->lengthlist is allocated as bellow,</FONT></DIV>
<DIV><FONT size=2></FONT><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> s->entries=oggpack_read(opb,24);<BR>...</FONT></DIV>
<DIV><FONT size=2> s->lengthlist=(long
*)_ogg_malloc(sizeof(*s->lengthlist)*s->entries);<BR></FONT></DIV>
<DIV><FONT size=2>This seems to mean that the size can be 16777215 *
sizeof(long) bytes!!!???</FONT></DIV>
<DIV><FONT size=2>In this way, the predicted value for running memory is
too large.</FONT></DIV>
<DIV><FONT size=2>Are there any other restrictions to memory size in
spec. or encoder?</FONT></DIV>
<DIV><FONT size=2>How can I predict the exact and proper limit of running
memory?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks in advance and best regards,</FONT></DIV>
<DIV><FONT size=2>Jin Soo</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> </DIV></FONT>
<DIV><FONT color=#000080 size=2><FONT color=#333399><FONT size=1><FONT
face="Century Gothic"></FONT></FONT></FONT></FONT> </DIV>
<DIV><FONT color=#000080 size=2><FONT color=#333399><FONT face="Century Gothic"
size=1></FONT> </DIV></FONT></FONT></BODY></HTML>