mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[codec,fdk] revert use of WinPR types
Due to naming collissions no WinPR header may be included here.
This commit is contained in:
@@ -205,7 +205,7 @@ static void log_dec_info(const CStreamInfo* info, void (*log)(const char* fmt, .
|
|||||||
|
|
||||||
static void log_enc_info(const AACENC_InfoStruct* info, fdk_log_fkt_t log)
|
static void log_enc_info(const AACENC_InfoStruct* info, fdk_log_fkt_t log)
|
||||||
{
|
{
|
||||||
char confBuf[1024] = WINPR_C_ARRAY_INIT;
|
char confBuf[1024] = { 0 };
|
||||||
|
|
||||||
assert(info);
|
assert(info);
|
||||||
assert(log);
|
assert(log);
|
||||||
@@ -460,7 +460,7 @@ int fdk_aac_dsp_impl_config(void* handle, size_t* pbuffersize, int encoder, unsi
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
AACENC_InfoStruct info = WINPR_C_ARRAY_INIT;
|
AACENC_InfoStruct info = { 0 };
|
||||||
err = aacEncInfo(self, &info);
|
err = aacEncInfo(self, &info);
|
||||||
if (err != AACENC_OK)
|
if (err != AACENC_OK)
|
||||||
{
|
{
|
||||||
@@ -535,7 +535,7 @@ ssize_t fdk_aac_dsp_impl_stream_info(void* handle, int encoder, fdk_log_fkt_t lo
|
|||||||
|
|
||||||
if (encoder)
|
if (encoder)
|
||||||
{
|
{
|
||||||
AACENC_InfoStruct info = WINPR_C_ARRAY_INIT;
|
AACENC_InfoStruct info = { 0 };
|
||||||
HANDLE_AACENCODER self = (HANDLE_AACENCODER)handle;
|
HANDLE_AACENCODER self = (HANDLE_AACENCODER)handle;
|
||||||
AACENC_ERROR err = aacEncInfo(self, &info);
|
AACENC_ERROR err = aacEncInfo(self, &info);
|
||||||
if (err != AACENC_OK)
|
if (err != AACENC_OK)
|
||||||
@@ -595,7 +595,7 @@ ssize_t fdk_aac_dsp_impl_encode(void* handle, const void* data, size_t size, voi
|
|||||||
const AACENC_InArgs inArgs = { .numInSamples =
|
const AACENC_InArgs inArgs = { .numInSamples =
|
||||||
(INT)(size / sizeof(INT_PCM)), /* TODO: 8/16 bit input? */
|
(INT)(size / sizeof(INT_PCM)), /* TODO: 8/16 bit input? */
|
||||||
.numAncBytes = 0 };
|
.numAncBytes = 0 };
|
||||||
AACENC_OutArgs outArgs = WINPR_C_ARRAY_INIT;
|
AACENC_OutArgs outArgs = { 0 };
|
||||||
|
|
||||||
HANDLE_AACENCODER self = (HANDLE_AACENCODER)handle;
|
HANDLE_AACENCODER self = (HANDLE_AACENCODER)handle;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user