mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
Merge pull request #12373 from akallabeth/c23-revert
[codec,fdk] revert use of WinPR types
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)
|
||||
{
|
||||
char confBuf[1024] = WINPR_C_ARRAY_INIT;
|
||||
char confBuf[1024] = { 0 };
|
||||
|
||||
assert(info);
|
||||
assert(log);
|
||||
@@ -460,7 +460,7 @@ int fdk_aac_dsp_impl_config(void* handle, size_t* pbuffersize, int encoder, unsi
|
||||
return -1;
|
||||
}
|
||||
|
||||
AACENC_InfoStruct info = WINPR_C_ARRAY_INIT;
|
||||
AACENC_InfoStruct info = { 0 };
|
||||
err = aacEncInfo(self, &info);
|
||||
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)
|
||||
{
|
||||
AACENC_InfoStruct info = WINPR_C_ARRAY_INIT;
|
||||
AACENC_InfoStruct info = { 0 };
|
||||
HANDLE_AACENCODER self = (HANDLE_AACENCODER)handle;
|
||||
AACENC_ERROR err = aacEncInfo(self, &info);
|
||||
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 =
|
||||
(INT)(size / sizeof(INT_PCM)), /* TODO: 8/16 bit input? */
|
||||
.numAncBytes = 0 };
|
||||
AACENC_OutArgs outArgs = WINPR_C_ARRAY_INIT;
|
||||
AACENC_OutArgs outArgs = { 0 };
|
||||
|
||||
HANDLE_AACENCODER self = (HANDLE_AACENCODER)handle;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user