This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to reset AAC Codec?



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;
}