Remove build warnings and fixed svace issues
[platform/adaptation/ap_samsung/libomxil-e3250-v4l2.git] / openmax / component / audio / dec / mp3 / Exynos_OMX_Mp3dec.c
index 56cc7d5..1ba3815 100755 (executable)
@@ -130,7 +130,6 @@ OMX_ERRORTYPE Exynos_SRP_Mp3Dec_GetParameter(
         break;
     case OMX_IndexParamStandardComponentRole:
     {
-        OMX_S32 codecType;
         OMX_PARAM_COMPONENTROLETYPE *pComponentRole = (OMX_PARAM_COMPONENTROLETYPE *)pComponentParameterStructure;
 
         ret = Exynos_OMX_Check_SizeVersion(pComponentRole, sizeof(OMX_PARAM_COMPONENTROLETYPE));
@@ -397,7 +396,6 @@ OMX_ERRORTYPE Exynos_SRP_Mp3Dec_ComponentRoleEnum(
     OMX_ERRORTYPE               ret = OMX_ErrorNone;
     OMX_COMPONENTTYPE          *pOMXComponent = NULL;
     EXYNOS_OMX_BASECOMPONENT   *pExynosComponent = NULL;
-    OMX_S32                     codecType;
 
     FunctionIn();
 
@@ -458,7 +456,6 @@ OMX_ERRORTYPE Exynos_SRP_Mp3Dec_Init(OMX_COMPONENTTYPE *pOMXComponent)
     outFile = fopen("/data/OutFile.pcm", "w+");
 #endif
 
-EXIT:
     FunctionOut();
 
     return ret;
@@ -467,7 +464,6 @@ EXIT:
 OMX_ERRORTYPE Exynos_SRP_Mp3Dec_Terminate(OMX_COMPONENTTYPE *pOMXComponent)
 {
     OMX_ERRORTYPE                  ret = OMX_ErrorNone;
-    EXYNOS_OMX_BASECOMPONENT      *pExynosComponent = (EXYNOS_OMX_BASECOMPONENT *)pOMXComponent->pComponentPrivate;
 
     FunctionIn();
 
@@ -476,7 +472,6 @@ OMX_ERRORTYPE Exynos_SRP_Mp3Dec_Terminate(OMX_COMPONENTTYPE *pOMXComponent)
     fclose(outFile);
 #endif
 
-EXIT:
     FunctionOut();
 
     return ret;
@@ -678,7 +673,7 @@ OMX_ERRORTYPE Exynos_SRP_Mp3Dec_bufferProcess(OMX_COMPONENTTYPE *pOMXComponent,
     ret = Exynos_SRP_Mp3_Decode_Block(pOMXComponent, pInputData, pOutputData);
 
     if (ret != OMX_ErrorNone) {
-        if (ret == OMX_ErrorInputDataDecodeYet) {
+        if (ret == (OMX_ERRORTYPE)OMX_ErrorInputDataDecodeYet) {
             pOutputData->usedDataLen = 0;
             pOutputData->remainDataLen = pOutputData->dataLen;
         } else {
@@ -717,7 +712,6 @@ OSCL_EXPORT_REF OMX_ERRORTYPE Exynos_OMX_ComponentInit(OMX_HANDLETYPE hComponent
     unsigned int                   outputBufferSize = 0;
     unsigned int                   outputBufferNum = 0;
     OMX_S32                        returnCodec;
-    int i = 0;
 
     FunctionIn();