<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title></title>
</head>
<body>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">There seems to be a memory violation when calling celt_mode_create(48000, 240).</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">The function compute_pulse_cache() calls celt_alloc (the second one, bits=celt_alloc()) in order to allocate 343 byte, but it is using about 872 bytes at that location, which will be deleted by the following allocations.</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">In this case the following encoder call crashes at first run.</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Sorry, my time is very limited, I cannot trace this any further now. <span> </span> Could you please check the figure given in celt_alloc() and/or the folling loop, which is populating the allocated memory. </p>
<span> </span>
<p style="margin: 0px;">The other allocations seem ok.</p>
<br />
<p style="margin: 0px;">thanks a lot,</p>
<p style="margin: 0px;">Marko.</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
our config:<br />
 - version = 0.9.1<br />
 - ARM9, FIXED_POINT, DOUBLE_PRECISION, VAR_ARRAYS<br />
 - f<s> = 48kHz<br />
 - frame_size = 240 (p.ch.) (--> 5ms) <br />
 - rate = 128 kbit/s (stereo)<br />
 - vbr_rate = 0<br />
 - prediction = 2<br />
 - complexity = 10
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
</body>
</html>