Hi,
I tried to write a API to reset AAC Codec, but it will occur kernel crashing.
Does it have any wrong?
Thanks
Int32 Audio_resetEncoder(Void *ctxMem)
{
Int32 status = -1;
encContextDsp *ctx;
encContext *handle;
handle = ctxMem;
if(handle)
{
ctx = GET_ENC_INT_STRUCT(handle);
*(ctx->cmdId) = XDM_RESET;
status = Rpe_control (ctx->encControlCallDesc);
*(ctx->cmdId) = XDM_GETSTATUS;
status = Rpe_control (ctx->encControlCallDesc);
ctx->encFrameCnt=0;
}
return status;
}