<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-15">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt><span class="tlid-translation translation"><span title=""
class="">I made some changes to the management of dynamic
memory in order to select an<br>
alternative manager of the one present in the standard
libraries (malloc, free).</span></span></tt><br>
<tt><span class="tlid-translation translation"><span title=""
class=""><br>
In the file "common.h" select the dynamic memory allocation
function:<br>
<br>
</span></span></tt><tt><span class="tlid-translation
translation"><span title="" class="">/* <br>
* Aliases for C library malloc() in case C library <br>
* malloc() needs extra protection or other type of<br>
* dynamic allocation is usated, allow these defines <br>
* to be overridden.<br>
*/<br>
<br>
#ifndef bitstream_malloc<br>
#define bitstream_malloc malloc<br>
#endif<br>
#ifndef bitstream_free<br>
#define bitstream_free free<br>
#endif<br>
<br>
</span></span></tt><tt><span class="tlid-translation
translation"><span title="" class="">During the work of restile
I have found some small mistake in some functions:</span></span></tt><br>
<tt><span class="tlid-translation translation"><span title=""
class=""><br>
- desc_6a.h do not return value </span></span></tt><tt><span
class="tlid-translation translation"><span title="" class=""><span
class="tlid-translation translation"><span title="" class=""><tt><tt><span
class="tlid-translation translation"><span title=""
class="">(void)</span></span></tt></tt></span></span>
<br>
</span></span></tt><br>
<span class="tlid-translation translation"><span title="" class=""><tt>static
inline void desc6a_set_length(uint8_t *p_desc)</tt><tt><br>
</tt><tt>{</tt><tt><br>
</tt><tt> uint8_t i_size = (DESC6A_HEADER_SIZE -
DESC_HEADER_SIZE)</tt><tt><br>
</tt><tt> +
desc6a_get_component_type_flag(p_desc)</tt><tt><br>
</tt><tt> + desc6a_get_bsid_flag(p_desc)</tt><tt><br>
</tt><tt> + desc6a_get_mainid_flag(p_desc)</tt><tt><br>
</tt><tt> + desc6a_get_asvc_flag(p_desc);</tt><tt><br>
</tt><tt> return desc_set_length(p_desc, i_size);</tt><tt><br>
</tt><tt>}<br>
</tt></span></span><br>
<span class="tlid-translation translation"><span title="" class=""><tt><tt><span
class="tlid-translation translation"><span title=""
class="">- desc_7a.h do not return value (void)<br>
<br>
</span></span></tt>static inline void
desc7a_set_length(uint8_t *p_desc)<br>
{<br>
uint8_t i_size = (DESC7A_HEADER_SIZE - DESC_HEADER_SIZE)<br>
+
desc7a_get_component_type_flag(p_desc)<br>
+ desc7a_get_bsid_flag(p_desc)<br>
+ desc7a_get_mainid_flag(p_desc)<br>
+ desc7a_get_asvc_flag(p_desc)<br>
+ desc7a_get_substream1_flag(p_desc)<br>
+ desc7a_get_substream2_flag(p_desc)<br>
+ desc7a_get_substream3_flag(p_desc);<br>
return desc_set_length(p_desc, i_size);<br>
}<br>
<br>
- I have rewrite part of "desc_83p28.h" and "desc_88p28.h"<br>
<br>
Function for "set" </tt></span></span><span
class="tlid-translation translation"><span title="" class=""><tt><span
class="tlid-translation translation"><span title="" class="">were
absent and "</span></span></tt></span></span><span
class="tlid-translation translation"><span title="" class=""><tt><span
class="tlid-translation translation"><span title="" class=""><span
class="tlid-translation translation"><span title=""
class=""><tt>desc_88p28.h" </tt></span></span></span></span></tt></span></span><span
class="tlid-translation translation"><span title="" class=""><tt><span
class="tlid-translation translation"><span title="" class=""><span
class="tlid-translation translation"><span title=""
class=""><tt><span class="tlid-translation
translation"><span title="" class="">he had the
name of the wrong <br>
functions.<br>
<br>
- In the file "psi.h" I have add a "psi_get_crc"
function<br>
<br>
Hoping to have done something util, </span></span></tt></span></span></span></span></tt></span></span><span
class="tlid-translation translation"><span title="" class=""><tt><span
class="tlid-translation translation"><span title="" class=""><span
class="tlid-translation translation"><span title=""
class=""><tt><span class="tlid-translation
translation"><span title="" class=""><span
class="tlid-translation translation"><span
title="" class="">I have attached the file
for the patch.</span></span><br>
<br>
debugasm<br>
<br>
</span></span></tt></span></span></span></span></tt></span></span>
</body>
</html>