Update opus from 1.1 to 1.1.4
Define FLOAT_APPROX in Makefile and misc/msvc12/quake3.vcxproj.
This commit is contained in:
parent
67bfe8f8d6
commit
853110d5d4
146 changed files with 11919 additions and 2111 deletions
|
@ -219,8 +219,9 @@ opus_int32 opus_repacketizer_out_range_impl(OpusRepacketizer *rp, int begin, int
|
|||
}
|
||||
if (pad)
|
||||
{
|
||||
for (i=ptr-data;i<maxlen;i++)
|
||||
data[i] = 0;
|
||||
/* Fill padding with zeros. */
|
||||
while (ptr<data+maxlen)
|
||||
*ptr++=0;
|
||||
}
|
||||
return tot_size;
|
||||
}
|
||||
|
@ -248,7 +249,9 @@ int opus_packet_pad(unsigned char *data, opus_int32 len, opus_int32 new_len)
|
|||
opus_repacketizer_init(&rp);
|
||||
/* Moving payload to the end of the packet so we can do in-place padding */
|
||||
OPUS_MOVE(data+new_len-len, data, len);
|
||||
opus_repacketizer_cat(&rp, data+new_len-len, len);
|
||||
ret = opus_repacketizer_cat(&rp, data+new_len-len, len);
|
||||
if (ret != OPUS_OK)
|
||||
return ret;
|
||||
ret = opus_repacketizer_out_range_impl(&rp, 0, rp.nb_frames, data, new_len, 0, 1);
|
||||
if (ret > 0)
|
||||
return OPUS_OK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue