status_t SoftHEVC::setFlushMode() {
    IV_API_CALL_STATUS_T status;
 ivd_ctl_flush_ip_t s_video_flush_ip;
 ivd_ctl_flush_op_t s_video_flush_op;

    s_video_flush_ip.e_cmd = IVD_CMD_VIDEO_CTL;
    s_video_flush_ip.e_sub_cmd = IVD_CMD_CTL_FLUSH;
    s_video_flush_ip.u4_size = sizeof(ivd_ctl_flush_ip_t);
    s_video_flush_op.u4_size = sizeof(ivd_ctl_flush_op_t);
    ALOGV("Set the decoder in flush mode ");

 /* Set the decoder in Flush mode, subsequent decode() calls will flush */
    status = ivdec_api_function(mCodecCtx, (void *)&s_video_flush_ip,
 (void *)&s_video_flush_op);

 if (status != IV_SUCCESS) {
        ALOGE("Error in setting the decoder in flush mode: (%d) 0x%x", status,
                s_video_flush_op.u4_error_code);
 return UNKNOWN_ERROR;
 }

    mIsInFlush = true;
 return OK;
}

The product does not properly encode or decode the data, resulting in unexpected values.