Modify setting codec data when decoding aac
[platform/core/api/mediacodec.git] / src / media_codec_port.c
index edb2d20..4508f33 100755 (executable)
@@ -176,7 +176,7 @@ int mc_set_vdec_info(MMHandleType mediacodec, int width, int height)
                return MC_PARAM_ERROR;
 
        MEDIACODEC_CHECK_CONDITION(mc_handle->codec_id && mc_handle->is_video && !mc_handle->is_encoder,
-                       MEDIACODEC_ERROR_INVALID_PARAMETER, "MEDIACODEC_ERROR_INVALID_PARAMETER");
+                       MC_INVALID_ARG, "MEDIACODEC_ERROR_INVALID_PARAMETER");
 
        mc_handle->info.decoder.width = width;
        mc_handle->info.decoder.height = height;
@@ -200,7 +200,7 @@ int mc_set_venc_info(MMHandleType mediacodec, int width, int height, int fps, in
                return MC_PARAM_ERROR;
 
        MEDIACODEC_CHECK_CONDITION(mc_handle->codec_id && mc_handle->is_video && mc_handle->is_encoder,
-                       MEDIACODEC_ERROR_INVALID_PARAMETER, "MEDIACODEC_ERROR_INVALID_PARAMETER");
+                       MC_INVALID_ARG, "MEDIACODEC_ERROR_INVALID_PARAMETER");
 
        mc_handle->info.encoder.width = width;
        mc_handle->info.encoder.height = height;
@@ -225,7 +225,7 @@ int mc_set_adec_info(MMHandleType mediacodec, int samplerate, int channel, int b
                return MC_PARAM_ERROR;
 
        MEDIACODEC_CHECK_CONDITION(mc_handle->codec_id && !mc_handle->is_video && !mc_handle->is_encoder,
-                       MEDIACODEC_ERROR_INVALID_PARAMETER, "MEDIACODEC_ERROR_INVALID_PARAMETER");
+                       MC_INVALID_ARG, "MEDIACODEC_ERROR_INVALID_PARAMETER");
 
        mc_handle->info.decoder.samplerate = samplerate;
        mc_handle->info.decoder.channel = channel;
@@ -249,7 +249,7 @@ int mc_set_aenc_info(MMHandleType mediacodec, int samplerate, int channel, int b
                return MC_PARAM_ERROR;
 
        MEDIACODEC_CHECK_CONDITION(mc_handle->codec_id && !mc_handle->is_video && mc_handle->is_encoder,
-                       MEDIACODEC_ERROR_INVALID_PARAMETER, "MEDIACODEC_ERROR_INVALID_PARAMETER");
+                       MC_INVALID_ARG, "MEDIACODEC_ERROR_INVALID_PARAMETER");
 
        mc_handle->info.encoder.samplerate = samplerate;
        mc_handle->info.encoder.channel = channel;