Makes the allocation more C++-friendly
This commit is contained in:
parent
ebec87a287
commit
0abd1b0dea
3 changed files with 4 additions and 4 deletions
|
@ -201,7 +201,7 @@ OpusMSEncoder *opus_multistream_encoder_create(
|
|||
)
|
||||
{
|
||||
int ret;
|
||||
OpusMSEncoder *st = opus_alloc(opus_multistream_encoder_get_size(streams, coupled_streams));
|
||||
OpusMSEncoder *st = (OpusMSEncoder *)opus_alloc(opus_multistream_encoder_get_size(streams, coupled_streams));
|
||||
if (st==NULL)
|
||||
{
|
||||
if (error)
|
||||
|
@ -510,7 +510,7 @@ OpusMSDecoder *opus_multistream_decoder_create(
|
|||
)
|
||||
{
|
||||
int ret;
|
||||
OpusMSDecoder *st = opus_alloc(opus_multistream_decoder_get_size(streams, coupled_streams));
|
||||
OpusMSDecoder *st = (OpusMSDecoder *)opus_alloc(opus_multistream_decoder_get_size(streams, coupled_streams));
|
||||
if (st==NULL)
|
||||
{
|
||||
if (error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue